diff --git a/src/composables/useSettings.ts b/src/composables/useSettings.ts index 6874df5..dcc2056 100644 --- a/src/composables/useSettings.ts +++ b/src/composables/useSettings.ts @@ -31,11 +31,11 @@ const defaultMode = 'global' const availableModes: { id: string; label: string }[] = [ { id: 'global', - label: 'Global Predictions', + label: 'Global', }, { id: 'inference', - label: 'My Inference', + label: 'Custom', }, // { // id: 'edit', diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 771f8d4..032f792 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -3,7 +3,7 @@ top: 1rem; z-index: 1000; min-height: 50px; - max-height: calc(100vh - 5rem); + max-height: calc(100vh - 7rem); display: flex; flex-direction: column; background-color: rgba(0, 0, 0, 0.9); @@ -20,7 +20,7 @@ @media (width <=1200px) { .sidebar { top: 4rem !important; - max-height: calc(100vh - 8.5rem); + max-height: calc(100vh - 10rem); } } diff --git a/src/views/MapView.vue b/src/views/MapView.vue index 5e04fea..a63c297 100644 --- a/src/views/MapView.vue +++ b/src/views/MapView.vue @@ -40,19 +40,22 @@ function setModeValue(newValue: number) { class="logo" @click="aboutDialog = true" /> - - - -
{{ tab.label }}
-
-
-
+ + Predictions + + + + {{ tab.label }} + + + @@ -84,18 +87,38 @@ function setModeValue(newValue: number) { transform: translateX(-50%); z-index: 1000; background-color: rgba(0, 0, 0, 0.5); - padding: 0.25rem 0.5rem 0.5rem 0.5rem; + padding: 0 0.5rem; border-radius: 0 0 1rem 1rem; - font-size: 1.33rem; - font-weight: 600; - text-align: center; + height: 3.5rem; + display: flex; + align-items: center; + gap: 0.25rem; } #title .logo { - height: 64px; + height: 3.5rem; cursor: pointer; } +#title .switch { + margin: 0.25rem; + height: 2.5rem; + display: flex; + align-items: center; + overflow: hidden; + background: transparent; +} + +#title .switch-label { + padding: 0 0.75rem; + font-weight: 600; +} + +#title .switch :deep(.v-btn) { + padding: 0 0.75rem; + min-width: unset; +} + .map-view { position: absolute; top: 0; @@ -106,32 +129,10 @@ function setModeValue(newValue: number) { height: 100%; } -.mode-switch { - display: flex; - gap: 0.5rem; -} - -.mode-switch-btn { - font-size: 1.1rem; - padding: 0.2rem 0.5rem; - white-space: nowrap; -} .info-btn { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1001; } - -@media (width <= 1200px) { - #title { - display: flex; - } - #title .logo { - height: 40px; - } - .mode-switch-btn { - font-size: 1rem; - } -}