Skip to content

Commit 1252927

Browse files
committed
fix(settings): improve ModelAccess table responsiveness during browser zoom
1 parent 72669d1 commit 1252927

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

frontend/src/pages/SettingsPage/ModelAccess.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,18 @@ export default function ModelAccess() {
279279
}
280280
className="mb-4"
281281
/>
282-
<Card>
283-
<Table
284-
rowKey="id"
285-
columns={columns}
286-
dataSource={tableData}
287-
loading={loading}
288-
pagination={pagination}
289-
scroll={{ x: "max-content", y: "calc(100vh - 26rem)" }}
290-
/>
291-
</Card>
282+
<div className="flex flex-col h-[calc(100vh-12rem)]">
283+
<Card className="flex-1 overflow-auto">
284+
<Table
285+
rowKey="id"
286+
columns={columns}
287+
dataSource={tableData}
288+
loading={loading}
289+
pagination={pagination}
290+
scroll={false}
291+
/>
292+
</Card>
293+
</div>
292294
<Modal
293295
open={showModelDialog}
294296
onCancel={() => setShowModelDialog(false)}

0 commit comments

Comments
 (0)