Commit 0eda58d9 authored by 375242562@qq.com's avatar 375242562@qq.com

fix: 修复所有 Drawer 被顶部 AppBar 遮挡的问题

TopBar 的 AppBar zIndex 设置为 drawer+1,导致右侧抽屉面板被遮挡。
为 MatchingDetailDrawer、RecommendationDrawer、PatientDetailDrawer
统一设置 zIndex: theme.zIndex.modal(1300),高于 AppBar 层级。
Co-Authored-By: default avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent f2badcc8
......@@ -44,7 +44,7 @@ export function MatchingDetailDrawer({ result, open, onClose, onAuditSuccess }:
}
return (
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 600 } }}>
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 600 } }} sx={{ zIndex: (theme) => theme.zIndex.modal }}>
<Box sx={{ p: 3, height: '100%', overflow: 'auto' }}>
<Stack direction="row" justifyContent="space-between" alignItems="center" mb={2}>
<Box>
......
......@@ -21,7 +21,7 @@ export function PatientDetailDrawer({ patient, open, onClose }: PatientDetailDra
if (!patient) return null
return (
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 480 } }}>
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 480 } }} sx={{ zIndex: (theme) => theme.zIndex.modal }}>
<Box sx={{ p: 3 }}>
{/* Header */}
<Box display="flex" alignItems="center" justifyContent="space-between" mb={2}>
......
......@@ -26,7 +26,7 @@ export function RecommendationDrawer({ open, notifications, onClose, onRefresh }
}
return (
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 420 } }}>
<Drawer anchor="right" open={open} onClose={onClose} PaperProps={{ sx: { width: 420 } }} sx={{ zIndex: (theme) => theme.zIndex.modal }}>
<Box sx={{ p: 2 }}>
<Box display="flex" alignItems="center" justifyContent="space-between" mb={1}>
<Typography variant="h6">推荐通知</Typography>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment