use reactive breakpoints to conditionally render right sidebar

+ use reactive content div width to remove big img on album page header
This commit is contained in:
geoffrey45
2022-09-10 22:53:44 +03:00
parent 527051f8a2
commit 96019a4c81
9 changed files with 59 additions and 44 deletions
-7
View File
@@ -1,7 +0,0 @@
import { useBreakpoints, breakpointsTailwind } from "@vueuse/core";
const breakpoints = useBreakpoints(breakpointsTailwind);
const xl = breakpoints.greater("xl");
export { xl };
+11
View File
@@ -0,0 +1,11 @@
import { computed } from "vue";
import { ref } from "@vue/reactivity";
const content_width = ref(0);
const isSmall = computed(() => {
return content_width.value < 700;
});
console.log(content_width);
export { content_width, isSmall };