From 9a520c122ef6576826e1c72f7484573b7700cfbe Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Mar 2024 00:12:48 -0500 Subject: [PATCH] chg: Disable column separators and right align hits --- resources/index.html | 2 +- resources/static/script.js | 1 + resources/static/styles.css | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/index.html b/resources/index.html index e4d8582..2b073de 100644 --- a/resources/index.html +++ b/resources/index.html @@ -52,7 +52,7 @@ Short URL (click to copy) Long URL - Hits + Hits × diff --git a/resources/static/script.js b/resources/static/script.js index 35350bf..b7d19ca 100644 --- a/resources/static/script.js +++ b/resources/static/script.js @@ -97,6 +97,7 @@ const TR = (row, site) => { } hitsTD = TD(row.hits); hitsTD.setAttribute("label", "Hits"); + hitsTD.setAttribute("name", "hitsColumn"); const btn = deleteButton(row.short); tr.appendChild(shortTD); diff --git a/resources/static/styles.css b/resources/static/styles.css index c4740f5..4fc3411 100644 --- a/resources/static/styles.css +++ b/resources/static/styles.css @@ -20,6 +20,14 @@ table tr td div { overflow: auto; } +.pure-table td { + border-left: none; +} + +td[name="hitsColumn"] { + text-align: right; +} + td[name="deleteBtn"] div { display: flex; align-items: center;