Center title and maximize tree viewport on mobile (THE-118)

- Use position:absolute for theme toggle so title centers naturally
- Reduce search bar padding on mobile for more vertical space
- Add min-height: 60vh on SVG to ensure tree fills viewport
- Desktop layout unchanged

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
s0lray
2026-03-26 18:24:44 -04:00
co-authored by Paperclip
parent c4531cb053
commit 56e65f27ac
+21 -10
View File
@@ -284,11 +284,9 @@ a {
@media (max-width: 768px) {
#header {
font-size: var(--font-size-lg);
top: 10px;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-3);
top: 0;
position: relative;
text-align: center;
padding: var(--space-2) var(--space-3);
}
@@ -296,12 +294,12 @@ a {
display: none;
}
#header-title {
flex: 1;
}
#mobile-theme-toggle {
display: inline-block;
position: absolute;
right: var(--space-3);
top: 50%;
transform: translateY(-50%);
background: none;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
@@ -311,7 +309,6 @@ a {
padding: var(--space-1) var(--space-2);
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
}
#mobile-theme-toggle:hover {
@@ -319,6 +316,15 @@ a {
border-color: var(--color-text-secondary);
}
#search-container {
padding: var(--space-1) 0;
}
#search-input {
padding: var(--space-1) var(--space-2);
font-size: 13px;
}
/* Hide legend and notes content on mobile */
.legend {
display: none;
@@ -328,6 +334,11 @@ a {
display: none;
}
/* Maximize SVG tree viewport */
svg {
min-height: 60vh;
}
/* Floating notes button */
#mobile-notes-btn {
display: block;