Skip to content

Commit c27e6a2

Browse files
mariuspruvotclaude
andcommitted
fix(web): table sizes to content, no bordered empty space
Wrap the bordered table in a flex-1 filler so the box shrinks to its actual row count instead of stretching to fill the viewport. For many rows, max-h-full caps the table at the available space and the inner list scrolls as before. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0e94035 commit c27e6a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/src/features/dashboard/InstallationDetail.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ export default function InstallationDetail() {
190190

191191
{/* Session table */}
192192
{!loading && sessions.length > 0 && (
193-
<div className="flex-1 min-h-0 flex flex-col border border-rule-str rounded-[8px] overflow-hidden">
193+
<div className="flex-1 min-h-0 flex flex-col">
194+
<div className="max-h-full min-h-0 flex flex-col border border-rule-str rounded-[8px] overflow-hidden">
194195
{/* Table header */}
195196
<div
196197
className="shrink-0 grid bg-bg2 px-3 lg:px-4 py-2 font-mono text-[9px] lg:text-[10px] text-dim tracking-[0.18em] uppercase border-b border-rule"
@@ -255,6 +256,7 @@ export default function InstallationDetail() {
255256
})}
256257
</div>
257258
</div>
259+
</div>
258260
)}
259261

260262
{/* Pagination */}

0 commit comments

Comments
 (0)