避免菜单筛选后表格高度坍塌

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-03 22:18:22 +08:00
parent 424b7225bd
commit 96760f177a
2 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -23,7 +23,7 @@ import {
type CardProps,
type TableColumnsType,
} from "antd";
import type { ComponentType } from "react";
import type { CSSProperties, ComponentType } from "react";
import { useAuth } from "@/components/auth-provider";
import { useTopicSubscription } from "@/hooks/use-topic-subscription";
@@ -551,7 +551,11 @@ export default function AdminMenusPage() {
</Button>
</Form.Item>
</Form>
<div ref={tableScrollAnchorRef} className="mt-4">
<div
ref={tableScrollAnchorRef}
className="admin-menus-table-anchor mt-4"
style={{ "--admin-menus-table-body-min-height": `${tableScrollY}px` } as CSSProperties}
>
<Table<MenuItem>
rowKey="id"
dataSource={filteredMenus}
+4
View File
@@ -208,6 +208,10 @@ body {
scrollbar-gutter: stable;
}
.admin-menus-table-anchor .ant-table-body {
min-height: var(--admin-menus-table-body-min-height, 180px);
}
.fquiz-row-selected > td {
background: var(--fquiz-theme-bg-active) !important;
}