From cd34fd27a1b2d5e0e3885e03d137c9cc1672f0f6 Mon Sep 17 00:00:00 2001 From: Falkan Date: Wed, 18 Mar 2026 22:40:48 -0400 Subject: [PATCH] fix: uniform sizing for admin header buttons --- data/units.json | 147 +++++++++++++++++----------------- src/routes/admin/+page.svelte | 6 ++ 2 files changed, 80 insertions(+), 73 deletions(-) diff --git a/data/units.json b/data/units.json index 5ad4bd7..2539886 100644 --- a/data/units.json +++ b/data/units.json @@ -1,22 +1,37 @@ { "units": [ { - "id": "dickload", - "label": "dickload", - "labelPlural": "dickloads", - "symbol": "dl", + "id": "assload", + "label": "assload", + "labelPlural": "assloads", + "symbol": "assl", "group": "dickloads", - "toBase": 1, - "description": "The basic unit of measurement for all weights and masses worldwide." + "toBase": 2 }, { - "id": "pound", - "label": "pound", - "labelPlural": "pounds", - "symbol": "lb", + "id": "imperial-barrel", + "label": "barrel", + "labelPlural": "barrels", + "symbol": "bbl imperial", "group": "dickloads", - "toBase": 0.038, - "description": "Avoirdupois pounds, as used in the USA." + "toBase": 13.710316648, + "hidden": false + }, + { + "id": "us-dry-bbl", + "label": "barrel", + "labelPlural": "barrels", + "symbol": "bbl us dry", + "group": "dickloads", + "toBase": 9.6864954123 + }, + { + "id": "us-fluid-bbl", + "label": "barrel", + "labelPlural": "barrels", + "symbol": "bbl us fluid", + "group": "dickloads", + "toBase": 9.9894438 }, { "id": "us-oil-bbl", @@ -28,6 +43,23 @@ "description": "Weight is based on pure water at 4 degrees celsius.", "hidden": false }, + { + "id": "dickload", + "label": "dickload", + "labelPlural": "dickloads", + "symbol": "dl", + "group": "dickloads", + "toBase": 1, + "description": "The basic unit of measurement for all weights and masses worldwide." + }, + { + "id": "fuckton", + "label": "fuck ton", + "labelPlural": "fuck tons", + "symbol": "fcktn", + "group": "dickloads", + "toBase": 152 + }, { "id": "imperial-hogshead", "label": "hogshead", @@ -38,20 +70,13 @@ "description": "The hogshead as understood by residents of Old Blighty." }, { - "id": "short-ton", - "label": "short ton", - "labelPlural": "short tons", - "symbol": "t", + "id": "us-hogshead", + "label": "hogshead", + "labelPlural": "hogsheads", + "symbol": "hhd us", "group": "dickloads", - "toBase": 76 - }, - { - "id": "fuckton", - "label": "fuck ton", - "labelPlural": "fuck tons", - "symbol": "fcktn", - "group": "dickloads", - "toBase": 152 + "toBase": 19.9788876, + "description": "Equal to two US fluid barrels." }, { "id": "long-ton", @@ -73,20 +98,22 @@ "hidden": false }, { - "id": "assload", - "label": "assload", - "labelPlural": "assloads", - "symbol": "assl", - "group": "dickloads", - "toBase": 2 + "id": "asdf", + "label": "asdf", + "labelPlural": "asdf", + "symbol": "asdf", + "group": "another-group", + "toBase": 1, + "hidden": true }, { - "id": "shitload", - "label": "shitload", - "labelPlural": "shitloads", - "symbol": "shtld", + "id": "pound", + "label": "pound", + "labelPlural": "pounds", + "symbol": "lb", "group": "dickloads", - "toBase": 12.6666666667 + "toBase": 0.038, + "description": "Avoirdupois pounds, as used in the USA." }, { "id": "shit-ton", @@ -97,46 +124,20 @@ "toBase": 38 }, { - "id": "asdf", - "label": "asdf", - "labelPlural": "asdf", - "symbol": "asdf", - "group": "another-group", - "toBase": 1, - "hidden": true + "id": "shitload", + "label": "shitload", + "labelPlural": "shitloads", + "symbol": "shtld", + "group": "dickloads", + "toBase": 12.6666666667 }, { - "id": "us-fluid-bbl", - "label": "barrel", - "labelPlural": "barrels", - "symbol": "bbl us fluid", + "id": "short-ton", + "label": "short ton", + "labelPlural": "short tons", + "symbol": "t", "group": "dickloads", - "toBase": 9.9894438 - }, - { - "id": "us-dry-bbl", - "label": "barrel", - "labelPlural": "barrels", - "symbol": "bbl us dry", - "group": "dickloads", - "toBase": 9.6864954123 - }, - { - "id": "us-hogshead", - "label": "hogshead", - "labelPlural": "hogsheads", - "symbol": "hhd us", - "group": "dickloads", - "toBase": 19.9788876, - "description": "Equal to two US fluid barrels." - }, - { - "id": "imperial-barrel", - "label": "barrel", - "labelPlural": "barrels", - "symbol": "bbl imperial", - "group": "dickloads", - "toBase": 13.710316648 + "toBase": 76 } ], "groups": [ diff --git a/src/routes/admin/+page.svelte b/src/routes/admin/+page.svelte index 63db937..63b890b 100644 --- a/src/routes/admin/+page.svelte +++ b/src/routes/admin/+page.svelte @@ -1160,6 +1160,12 @@ gap: 0.5rem; align-items: center; } + .admin-header-actions button { + width: auto; + padding: 0.3rem 0.75rem; + margin-bottom: 0; + font-size: 0.9rem; + } .admin-panels { display: grid;