fix(ui): 修正操作詳情對話框滾動問題
- 移除 ScrollArea 的高度計算,改用 h-full 配合 Flex 佈局自動填滿剩餘空間
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user