Spaces:
Sleeping
Sleeping
File size: 2,227 Bytes
7563aec 37a7681 7563aec 8907b9f 7563aec 37a7681 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | .app {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
background: #0e0e0e;
color: #ddd;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sidebar {
width: 260px;
flex-shrink: 0;
border-right: 1px solid #2a2a2a;
display: flex;
flex-direction: column;
overflow: hidden;
}
.sidebarContent {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
.browserSection {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
border-bottom: 1px solid #2a2a2a;
}
.infoSection {
flex-shrink: 0;
max-height: 45vh;
overflow-y: auto;
}
.version {
flex-shrink: 0;
padding: 6px 12px;
font-size: 10px;
color: #555;
border-top: 1px solid #1e1e1e;
font-family: monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Mobile toggle button β hidden on desktop */
.mobileToggle {
display: none;
}
/* ββ Mobile layout (β€ 768 px) ββββββββββββββββββββββββββββββββ */
@media (max-width: 768px) {
.app {
flex-direction: column;
}
.sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
/* collapsed: just the toggle strip */
max-height: 48px;
transition: max-height 0.25s ease;
overflow: hidden;
flex-shrink: 0;
}
.sidebar.sidebarOpen {
max-height: 60vh;
}
.sidebarContent {
overflow: hidden;
}
.sidebar.sidebarOpen .sidebarContent {
overflow-y: auto;
flex: 1;
max-height: calc(60vh - 48px);
}
.mobileToggle {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
height: 48px;
min-height: 48px;
padding: 0 16px;
background: #141414;
color: #ddd;
border: none;
border-bottom: 1px solid #222;
font-size: 14px;
cursor: pointer;
flex-shrink: 0;
text-align: left;
}
.mobileToggle:active {
background: #1e1e1e;
}
.main {
flex: 1;
min-height: 0;
}
.infoSection {
max-height: none;
}
}
|