Procházet zdrojové kódy

fix(frontend): restore responsive table height

Remove viewport-capped vertical scrolling so page size controls the rendered table height and page scrolling remains responsive.
Sanaei před 2 hodinami
rodič
revize
acbf09e710

+ 1 - 1
frontend/src/pages/clients/ClientsPage.tsx

@@ -1350,7 +1350,7 @@ export default function ClientsPage() {
                           rowSelection={rowSelection}
                           pagination={tablePagination}
                           size="small"
-                          scroll={{ x: 1200, y: 'calc(100vh - 380px)' }}
+                          scroll={{ x: 1200 }}
                           onChange={onTableChange}
                           locale={{
                             emptyText: (

+ 1 - 2
frontend/src/pages/hosts/HostList.tsx

@@ -231,8 +231,7 @@ export default function HostList(props: HostListProps) {
         columns={columns}
         dataSource={sorted}
         pagination={false}
-        scroll={{ x: 'max-content', y: 'calc(100vh - 280px)' }}
-        virtual
+        scroll={{ x: 'max-content' }}
         rowSelection={{
           selectedRowKeys: selectedGroupIds,
           onChange: (keys) => onSelectionChange(keys as string[]),

+ 1 - 1
frontend/src/pages/inbounds/list/InboundList.tsx

@@ -286,7 +286,7 @@ export default function InboundList({
               onChange: (keys: Key[]) => setSelectedRowKeys(keys as number[]),
             }}
             pagination={paginationFor(visibleInbounds)}
-            scroll={{ x: tableScrollX, y: 'calc(100vh - 320px)' }}
+            scroll={{ x: tableScrollX }}
             style={{ marginTop: 10 }}
             size="small"
             locale={{

+ 1 - 1
frontend/src/pages/nodes/NodeList.tsx

@@ -648,7 +648,7 @@ export default function NodeList({
           columns={columns}
           pagination={false}
           loading={loading}
-          scroll={{ x: 'max-content', y: 'calc(100vh - 320px)' }}
+          scroll={{ x: 'max-content' }}
           size="middle"
           rowKey="key"
           rowSelection={dataSource.length > 1 ? {