mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
remove content div margin bottom if alt_np is not shown
This commit is contained in:
+7
-8
@@ -2,16 +2,15 @@
|
||||
<ContextMenu />
|
||||
<Modal />
|
||||
<Notification />
|
||||
<div id="app-grid">
|
||||
<div
|
||||
id="app-grid"
|
||||
:class="{
|
||||
showAltNP: settings.use_alt_np,
|
||||
}"
|
||||
>
|
||||
<LeftSidebar />
|
||||
<NavBar />
|
||||
<div
|
||||
id="acontent"
|
||||
class="rounded"
|
||||
:style="{
|
||||
marginBottom: !settings.use_alt_np ? '-1rem' : '0',
|
||||
}"
|
||||
>
|
||||
<div id="acontent" class="rounded">
|
||||
<router-view />
|
||||
</div>
|
||||
<NowPlayingRight />
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"l-sidebar nav"
|
||||
"l-sidebar content"
|
||||
"l-sidebar content"
|
||||
"l-sidebar bottombar";
|
||||
"l-sidebar content";
|
||||
.r-sidebar,
|
||||
#tabs,
|
||||
#gsearch-input {
|
||||
@@ -32,6 +32,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
#app-grid.showAltNP {
|
||||
@include tablet-landscape {
|
||||
grid-template-areas:
|
||||
"l-sidebar nav"
|
||||
"l-sidebar content"
|
||||
"l-sidebar content"
|
||||
"l-sidebar bottombar";
|
||||
}
|
||||
}
|
||||
|
||||
#acontent {
|
||||
grid-area: content;
|
||||
max-width: 1955px;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
</div>
|
||||
|
||||
<nowPlaying v-if="!settings.use_alt_np" />
|
||||
<!-- <Playlists /> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -14,7 +13,6 @@
|
||||
import Navigation from "@/components/LeftSidebar/Navigation.vue";
|
||||
import nowPlaying from "@/components/LeftSidebar/nowPlaying.vue";
|
||||
import Logo from "@/components/Logo.vue";
|
||||
// import Playlists from "./components/LeftSidebar/Playlists.vue";
|
||||
|
||||
import useSettingsStore from "@/stores/settings";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div id="gsearch-input" class="rounded">
|
||||
<div id="ginner" tabindex="0" class="bg-primary rounded">
|
||||
<div id="gsearch-input">
|
||||
<div id="ginner" tabindex="0" class="bg-primary rounded-sm">
|
||||
<input
|
||||
id="globalsearch"
|
||||
v-model="search.query"
|
||||
@@ -11,9 +11,19 @@
|
||||
/>
|
||||
<SearchSvg />
|
||||
</div>
|
||||
<div class="buttons rounded bg-primary">
|
||||
<button @click="tabs.switchToQueue"><QueueSvg /></button>
|
||||
<button @click="tabs.switchToSearch"><SearchSvg /></button>
|
||||
<div class="buttons rounded-sm bg-primary">
|
||||
<button
|
||||
@click="tabs.switchToQueue"
|
||||
v-if="tabs.current !== tabs.tabs.queue"
|
||||
>
|
||||
<QueueSvg />
|
||||
</button>
|
||||
<button
|
||||
@click="tabs.switchToSearch"
|
||||
v-if="tabs.current !== tabs.tabs.search"
|
||||
>
|
||||
<SearchSvg />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -27,7 +37,6 @@ import useTabStore from "../../stores/tabs";
|
||||
|
||||
const search = useSearchStore();
|
||||
const tabs = useTabStore();
|
||||
const focused = ref(false);
|
||||
let classList: DOMTokenList | undefined;
|
||||
|
||||
onMounted(() => {
|
||||
@@ -46,7 +55,7 @@ function removeFocusedClass() {
|
||||
<style lang="scss">
|
||||
#gsearch-input {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 7rem;
|
||||
grid-template-columns: 1fr max-content;
|
||||
gap: 1rem;
|
||||
|
||||
.buttons {
|
||||
|
||||
Reference in New Issue
Block a user