diff --git a/package.json b/package.json
index 9917e191..6b78a447 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
},
"dependencies": {
"@popperjs/core": "^2.11.6",
+ "@vueuse/components": "^9.2.0",
"@vueuse/core": "^8.5.0",
"@vueuse/integrations": "^9.2.0",
"axios": "^0.26.1",
diff --git a/src/App.vue b/src/App.vue
index 1c069128..3f617134 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,7 +13,7 @@
>
-
+
@@ -26,11 +26,15 @@
import { onMounted } from "vue";
import { useRouter } from "vue-router";
import { onStartTyping } from "@vueuse/core";
+import { vElementSize } from "@vueuse/components";
import useQStore from "@/stores/queue";
import useModalStore from "@/stores/modal";
import useContextStore from "@/stores/context";
+import useSettingsStore from "@/stores/settings";
+import { xl } from "./composables/useBreakpoints";
import handleShortcuts from "@/composables/useKeyboard";
+import { readLocalStorage, writeLocalStorage } from "@/utils";
import Modal from "@/components/modal.vue";
import NavBar from "@/components/nav/NavBar.vue";
@@ -41,10 +45,7 @@ import RightSideBar from "@/components/RightSideBar/Main.vue";
import SearchInput from "@/components/RightSideBar/SearchInput.vue";
import NowPlayingRight from "@/components/RightSideBar/NowPlayingRight.vue";
import LeftSidebar from "./components/LeftSidebar/index.vue";
-import useSettingsStore from "@/stores/settings";
-
-import { readLocalStorage, writeLocalStorage } from "@/utils";
-import { xl } from "./stores/breakpoints";
+import { content_width } from "@/stores/content-width";
const queue = useQStore();
const router = useRouter();
@@ -67,7 +68,6 @@ router.afterEach(() => {
});
onStartTyping((e) => {
- // if control is pressed return
if (e.ctrlKey) {
console.log("ctrl pressed");
}
@@ -77,6 +77,16 @@ onStartTyping((e) => {
elem.value = "";
});
+function updateContentElemSize({
+ width,
+ height,
+}: {
+ width: number;
+ height: number;
+}) {
+ content_width.value = width;
+}
+
function handleWelcomeModal() {
let welcomeShowCount = readLocalStorage("shown-welcome-message");
diff --git a/src/assets/scss/Global/variants.scss b/src/assets/scss/Global/variants.scss
index 4cbdfbcb..6980bb9d 100644
--- a/src/assets/scss/Global/variants.scss
+++ b/src/assets/scss/Global/variants.scss
@@ -25,5 +25,5 @@
}
.shadow-lg {
- box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.175);
+ box-shadow: 0 0 $medium rgba(0, 0, 0, 0.589);
}
diff --git a/src/components/AlbumView/Header.vue b/src/components/AlbumView/Header.vue
index 57667e52..f555c358 100644
--- a/src/components/AlbumView/Header.vue
+++ b/src/components/AlbumView/Header.vue
@@ -16,10 +16,14 @@
>
@@ -35,7 +39,7 @@