diff --git a/src/App.vue b/src/App.vue
index 9fa6563..1c06912 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,6 +8,7 @@
:class="{
showAltNP: settings.use_sidebar && settings.use_alt_np,
disableSidebar: !settings.use_sidebar,
+ isSmall: !xl,
}"
>
@@ -16,8 +17,8 @@
-
-
+
+
@@ -43,6 +44,7 @@ import LeftSidebar from "./components/LeftSidebar/index.vue";
import useSettingsStore from "@/stores/settings";
import { readLocalStorage, writeLocalStorage } from "@/utils";
+import { xl } from "./stores/breakpoints";
const queue = useQStore();
const router = useRouter();
@@ -68,7 +70,7 @@ onStartTyping((e) => {
// if control is pressed return
if (e.ctrlKey) {
console.log("ctrl pressed");
- };
+ }
const elem = document.getElementById("globalsearch") as HTMLInputElement;
elem.focus();
diff --git a/src/assets/scss/Global/app-grid.scss b/src/assets/scss/Global/app-grid.scss
index 4384a4d..a7335a4 100644
--- a/src/assets/scss/Global/app-grid.scss
+++ b/src/assets/scss/Global/app-grid.scss
@@ -13,23 +13,32 @@
gap: 1rem;
margin: $small auto;
- @include for-desktop-down {
- grid-template-columns: min-content 1fr 26rem;
- }
+ // @include for-desktop-down {
+ // grid-template-columns: min-content 1fr 26rem;
+ // }
- @include tablet-landscape {
- grid-template-columns: min-content 1fr;
- grid-template-areas:
- "l-sidebar nav"
- "l-sidebar content"
- "l-sidebar content"
- "l-sidebar content";
- .r-sidebar,
- #tabs,
- #gsearch-input {
- display: none;
- }
- }
+ // @include tablet-landscape {
+ // grid-template-columns: min-content 1fr;
+ // grid-template-areas:
+ // "l-sidebar nav"
+ // "l-sidebar content"
+ // "l-sidebar content"
+ // "l-sidebar content";
+ // .r-sidebar,
+ // #tabs,
+ // #gsearch-input {
+ // display: none;
+ // }
+ // }
+}
+
+#app-grid.isSmall {
+ grid-template-columns: min-content 1fr;
+ grid-template-areas:
+ "l-sidebar nav"
+ "l-sidebar content"
+ "l-sidebar content"
+ "l-sidebar content";
}
#app-grid.showAltNP {
@@ -63,6 +72,16 @@
}
}
+#app-grid.isSmall #acontent {
+ margin-right: -$small;
+ padding-right: calc($small - 1px);
+}
+
+#app-grid.disableSidebar #acontent {
+ margin-right: -$small;
+ padding-right: calc($small - 1px);
+}
+
#tabs {
grid-area: tabs;
height: 3.5rem;
diff --git a/src/assets/scss/moz.scss b/src/assets/scss/moz.scss
index 3cb0b11..f192f1b 100644
--- a/src/assets/scss/moz.scss
+++ b/src/assets/scss/moz.scss
@@ -5,4 +5,22 @@
margin-right: -1rem;
padding-right: 1rem;
}
+
+ #app-grid.isSmall #acontent {
+ margin-right: -$small;
+ padding-right: $medium;
+ }
+
+ #app-grid.isSmall #page-search {
+ margin-right: $smaller;
+ }
+
+ #app-grid.disableSidebar #acontent {
+ margin-right: -$small;
+ padding-right: $medium;
+ }
+
+ #app-grid.disableSidebar #page-search {
+ margin-right: $smaller;
+ }
}
diff --git a/src/components/LeftSidebar/NP/SongCard.vue b/src/components/LeftSidebar/NP/SongCard.vue
index c40f267..59f0fa9 100644
--- a/src/components/LeftSidebar/NP/SongCard.vue
+++ b/src/components/LeftSidebar/NP/SongCard.vue
@@ -25,10 +25,10 @@
-
{{ props.track?.title }}
+
{{ props.track?.title || '♥ Hello ♥' }}
diff --git a/src/components/nav/Titles/QueueTitle.vue b/src/components/nav/Titles/QueueTitle.vue
index c866a2d..7152e15 100644
--- a/src/components/nav/Titles/QueueTitle.vue
+++ b/src/components/nav/Titles/QueueTitle.vue
@@ -82,7 +82,7 @@ function getSource() {
};
default:
- return { name: "Ghost source" };
+ return { name: "👻 Ghost source", location: {} };
}
}
@@ -113,13 +113,13 @@ const { name, icon: SourceIcon, location } = getSource();
grid-template-columns: max-content 1fr;
align-items: center;
padding: $smaller $small;
+ height: 100%;
}
svg {
transform: scale(0.9);
}
}
-
}
.queue-actions {
diff --git a/src/components/shared/ArtistName.vue b/src/components/shared/ArtistName.vue
index 4c3796d..71d45c7 100644
--- a/src/components/shared/ArtistName.vue
+++ b/src/components/shared/ArtistName.vue
@@ -1,6 +1,9 @@
-
+
{{ albumartist }}
diff --git a/src/stores/breakpoints.ts b/src/stores/breakpoints.ts
new file mode 100644
index 0000000..9f7175e
--- /dev/null
+++ b/src/stores/breakpoints.ts
@@ -0,0 +1,7 @@
+import { useBreakpoints, breakpointsTailwind } from "@vueuse/core";
+
+const breakpoints = useBreakpoints(breakpointsTailwind);
+
+const xl = breakpoints.greater("xl");
+
+export { xl };