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.
1 files changed
+1 −1
M
cmd/gitfed-web/render.go
+1 −1
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; }