fix(ui): die Seite rechnet die Höhe der HoneyOS-Leiste ab
Die Leiste liegt fest am oberen Rand und schiebt den Inhalt herunter. Wer danach noch mit 100vh rechnete, war genau um ihre Höhe zu hoch — am Rechner eine Bildlaufleiste, die es vorher nicht gab. Und wer selbst fest am oberen Rand klebte (Seitenleiste am Handy, Vorschau, Office), lag darunter und war verdeckt. --honeybar-h setzt die Leiste selbst auf <html>; ohne sie ist der Wert 0 und alles bleibt wie zuvor. Drei Hilfsklassen in index.css halten das an einer Stelle zusammen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57156a6394
commit
d6b9d6a1ce
8 files changed
+20
-8
No files matched your search
@@ -172,7 +172,7 @@ export default function FilePreview({ file, onPrev, onNext, onClose, onSaved, se
|
||||
<div
|
||||
onClick={tryClose}
|
||||
style={{
|
||||
position: 'fixed', inset: 0, zIndex: 100,
|
||||
position: 'fixed', inset: 'var(--honeybar-h) 0 0 0', zIndex: 100,
|
||||
background: 'rgba(0,0,0,0.82)',
|
||||
display: 'flex', flexDirection: 'column',
|
||||
}}
|
||||
|
||||
@@ -53,7 +53,7 @@ export default function OfficeEditor({ file, onClose }: {
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
position: 'fixed', inset: 0, zIndex: 120,
|
||||
position: 'fixed', inset: 'var(--honeybar-h) 0 0 0', zIndex: 120,
|
||||
background: 'var(--color-background)', display: 'flex', flexDirection: 'column',
|
||||
}}>
|
||||
<div style={{
|
||||
|
||||
@@ -61,7 +61,7 @@ export default function Shell({ user, onLogout, onUserChanged }: Props) {
|
||||
onLogout,
|
||||
onOpenSidebar: () => setSidebarOpen(true),
|
||||
}}>
|
||||
<div style={{ display: 'flex', height: '100vh', overflow: 'hidden' }}>
|
||||
<div className="aether-vh" style={{ display: 'flex', overflow: 'hidden' }}>
|
||||
{/* Mobile overlay */}
|
||||
{sidebarOpen && (
|
||||
<div
|
||||
|
||||
@@ -761,14 +761,14 @@ export default function Sidebar({ user, view, activeTagId, onOpenTag, onTrashDro
|
||||
flex-direction: column;
|
||||
background: var(--color-surface);
|
||||
border-right: 1px solid var(--color-border);
|
||||
height: 100vh;
|
||||
height: calc(100vh - var(--honeybar-h));
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.aether-sidebar {
|
||||
position: fixed;
|
||||
top: 0; left: 0;
|
||||
top: var(--honeybar-h); left: 0;
|
||||
z-index: 50;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.2s ease;
|
||||
|
||||
Reference in new issue
Block a user