Skip to content

Commit 8bf7fb0

Browse files
os-zhuangclaude
andcommitted
polish(record): cap detail content at a comfortable reading width
Record pages are scan/read surfaces. On wide monitors the full-bleed detail column stretched field rows so values sat far from their labels, hurting scannability. Cap the RecordDetailView content column at max-w-[1400px] (centered); data surfaces (lists / dashboards / visualizations) are untouched and stay full-width. Only affects viewports wide enough that the content region exceeds 1400px (~1665px+), so common 1440/1280 layouts are unchanged. Verified at 1920 (content centers, field rows tighten) and 1440 (no change). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent fcf1dd4 commit 8bf7fb0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/app-shell/src/views/RecordDetailView.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,11 @@ export function RecordDetailView({ dataSource, objects, onEdit, objectNameOverri
18931893

18941894
<div className="flex-1 overflow-hidden flex flex-row">
18951895
<div className="flex-1 overflow-auto p-3 sm:p-4 lg:p-6 scroll-pb-48">
1896+
{/* Cap the detail content at a comfortable reading width — record
1897+
pages are scan surfaces; full-bleed field rows on wide monitors
1898+
push values far from labels. Data surfaces (lists/dashboards)
1899+
stay full-width; this only affects the record detail column. */}
1900+
<div className="mx-auto w-full max-w-[1400px]">
18961901
<ActionProvider
18971902
context={{ record: {}, objectName, user: currentUser }}
18981903
onConfirm={confirmHandler}
@@ -1943,6 +1948,7 @@ export function RecordDetailView({ dataSource, objects, onEdit, objectNameOverri
19431948
/>
19441949
{modalElement}
19451950
</ActionProvider>
1951+
</div>
19461952
</div>
19471953
<MetadataPanel
19481954
open={showDebug}

0 commit comments

Comments
 (0)