Gitfed
bastien-mrq/gitfed/ Commits/ 3b29499

Fix file table rows not spanning full width

The generic \`table\` rule sets display:block (for horizontal scroll on the plain admin tables), which .gf-file-table inherited since it never declared its own display — that turns off normal table layout, so rows shrink-wrap their content instead of stretching to the table's 100% width. .gf-file-table now explicitly sets display:table to opt back in.

bastien-mrq 2026-07-28 16:15 commit 3b29499935cdcb0c7788a5bf21206bfb8792bf60 parent a259c6200a811c10b78b210cbd9f7cd6819dc9a7
1 files changed +1 −1
M cmd/gitfed-web/render.go +1 −1
cmd/gitfed-web/render.go
diff --git a/cmd/gitfed-web/render.go b/cmd/gitfed-web/render.go index f583da4..76fba94 100644 --- a/cmd/gitfed-web/render.go +++ b/cmd/gitfed-web/render.go @@ -133,7 +133,7 @@ const shellSrc = `<!doctype html> .gf-clone-url button { margin: 0 0 0 auto; padding: 0; background: none; border: none; color: var(--text-faint); cursor: pointer; flex-shrink: 0; font-size: 0.95rem; } .gf-clone-url button:hover { color: var(--text); } .gf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; } - .gf-file-table { width: 100%; border-collapse: collapse; margin: 0; } + .gf-file-table { display: table; width: 100%; border-collapse: collapse; margin: 0; } .gf-file-table tr { border-bottom: 1px solid var(--border); } .gf-file-table tr:last-child { border-bottom: none; } .gf-file-table td { padding: 0.55rem 0.9rem; font-size: 0.86rem; vertical-align: middle; border: none; }