diff --git a/core/frontend/src/admin-page.css b/core/frontend/src/admin-page.css index 2e3aa53..3de20be 100644 --- a/core/frontend/src/admin-page.css +++ b/core/frontend/src/admin-page.css @@ -539,7 +539,17 @@ } .admin-anomaly-chip { height: 28px; padding: 0 14px; font-size: 12.5px; cursor: pointer; } -.admin-drawer { width: 620px; max-width: 92vw; } +.admin-drawer { + --klein: #002fa7; + --st-muted: #6f747c; + --st-text: #17181a; + --st-line: rgba(34, 42, 54, 0.10); + --st-wash: rgba(34, 42, 54, 0.045); + width: 620px; + max-width: 92vw; + z-index: 1800; +} +.drawer-bg:has(+ .admin-drawer) { z-index: 1790; } .admin-json { background: var(--st-wash); border: 1px solid var(--st-line); @@ -551,7 +561,8 @@ line-height: 1.6; color: var(--black-alpha-72, var(--accent-black)); white-space: pre-wrap; - word-break: break-all; + overflow-wrap: anywhere; + word-break: break-word; max-height: 260px; overflow: auto; } diff --git a/core/frontend/src/components/overlays.tsx b/core/frontend/src/components/overlays.tsx index 0889b1d..a880fa7 100644 --- a/core/frontend/src/components/overlays.tsx +++ b/core/frontend/src/components/overlays.tsx @@ -181,7 +181,7 @@ export function SuccessModal({ open, title, detail, actions, close }: { ); } -export function Drawer({ title, open, close, children }: { title: string; open: boolean; close: () => void; children: ReactNode }) { +export function Drawer({ title, open, close, children, className }: { title: string; open: boolean; close: () => void; children: ReactNode; className?: string }) { useBodyScrollLock(open); const { mounted, show } = useOverlayTransition(open, close); if (!mounted) return null; @@ -189,7 +189,7 @@ export function Drawer({ title, open, close, children }: { title: string; open: return createPortal( <>
-