fix(ui): 修正操作詳情對話框滾動問題

- 移除 ScrollArea 的高度計算,改用 h-full 配合 Flex 佈局自動填滿剩餘空間
This commit is contained in:
2026-01-19 15:35:12 +08:00
parent a8091276b8
commit f83baffddb

View File

@@ -277,7 +277,7 @@ export default function ActivityDetailDialog({ open, onOpenChange, activity }: P
</DialogHeader> </DialogHeader>
<div className="flex-1 overflow-hidden bg-gray-50/50"> <div className="flex-1 overflow-hidden bg-gray-50/50">
<ScrollArea className="h-full max-h-[calc(90vh-140px)] p-6"> <ScrollArea className="h-full w-full p-6">
{activity.event === 'created' ? ( {activity.event === 'created' ? (
<div className="border rounded-md overflow-hidden bg-white shadow-sm"> <div className="border rounded-md overflow-hidden bg-white shadow-sm">
<Table> <Table>