1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00

chg: Disable column separators and right align hits

This commit is contained in:
Sayantan Santra 2024-03-31 00:12:48 -05:00
parent 3a712f812a
commit 9a520c122e
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
3 changed files with 10 additions and 1 deletions

View file

@ -52,7 +52,7 @@
<tr> <tr>
<td id="short-url-header">Short URL (click to copy)</td> <td id="short-url-header">Short URL (click to copy)</td>
<td>Long URL</td> <td>Long URL</td>
<td>Hits</td> <td name="hitsColumn">Hits</td>
<td name="deleteBtn">&times;</td> <td name="deleteBtn">&times;</td>
</tr> </tr>
</thead> </thead>

View file

@ -97,6 +97,7 @@ const TR = (row, site) => {
} }
hitsTD = TD(row.hits); hitsTD = TD(row.hits);
hitsTD.setAttribute("label", "Hits"); hitsTD.setAttribute("label", "Hits");
hitsTD.setAttribute("name", "hitsColumn");
const btn = deleteButton(row.short); const btn = deleteButton(row.short);
tr.appendChild(shortTD); tr.appendChild(shortTD);

View file

@ -20,6 +20,14 @@ table tr td div {
overflow: auto; overflow: auto;
} }
.pure-table td {
border-left: none;
}
td[name="hitsColumn"] {
text-align: right;
}
td[name="deleteBtn"] div { td[name="deleteBtn"] div {
display: flex; display: flex;
align-items: center; align-items: center;