fabrica

hanna/fabrica

fix(web): group-page UI polish (button height, select arrow, danger card)

dc3b0cf · hanna committed on 2026-07-26

- Match the icon-only settings gear to the height of the "New subgroup" button
  beside it by pinning the icon and line-height to a shared size.
- Give selects extra right padding so the native dropdown arrow isn't flush
  against the border.
- Drop the trailing margin on a lone danger-zone paragraph so a card with no
  delete form carries no extra bottom padding.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
1 files changed · +17 −1UnifiedSplit
assets/base.css +17 −1
@@ -736,6 +736,11 @@ body.drawer-open .drawer-backdrop {
736736 .danger-zone p {
737737 margin-top: 0;
738738 }
739+/* When the card holds only an explanatory paragraph (no delete form), drop the
740+ trailing margin so the card doesn't carry extra bottom padding. */
741+.danger-zone p:last-child {
742+ margin-bottom: 0;
743+}
739744
740745 /* Collaborators: a bordered list inside the card, then an add row. */
741746 .collab-list {
@@ -1196,7 +1201,8 @@ input[type="number"],
11961201 textarea,
11971202 select {
11981203 width: 100%;
1199- padding: 0.5rem;
1204+ /* Extra right padding so the native dropdown arrow isn't flush to the border. */
1205+ padding: 0.5rem 0.75rem;
12001206 font: inherit;
12011207 color: var(--fb-fg);
12021208 background: var(--fb-bg-inset);
@@ -2083,6 +2089,16 @@ pre.code {
20832089 align-items: center;
20842090 gap: 0.5rem;
20852091 }
2092+/* Icon-only buttons (e.g. the settings gear) must match the height of the
2093+ text buttons beside them: a bare 1em icon is shorter than a text line box, so
2094+ pin both the icon and the button's line-height to the same value. */
2095+.group-head-actions .btn {
2096+ line-height: 1.25rem;
2097+}
2098+.group-head-actions .btn .icon {
2099+ width: 1.25rem;
2100+ height: 1.25rem;
2101+}
20862102 /* "forked from owner/repo" line under the repo slug. */
20872103 .fork-note {
20882104 display: flex;