diff --git a/frontend/src/components/VSkeleton/VBone.vue b/frontend/src/components/VSkeleton/VBone.vue index 7ce0ed5308b..4cd7356be90 100644 --- a/frontend/src/components/VSkeleton/VBone.vue +++ b/frontend/src/components/VSkeleton/VBone.vue @@ -1,12 +1,21 @@ - + diff --git a/frontend/src/components/VSkeleton/VGridSkeleton.vue b/frontend/src/components/VSkeleton/VGridSkeleton.vue index e0a15e57bfd..fd9803cc875 100644 --- a/frontend/src/components/VSkeleton/VGridSkeleton.vue +++ b/frontend/src/components/VSkeleton/VGridSkeleton.vue @@ -3,10 +3,12 @@ * Display placeholder elements while waiting for the actual elements to be * loaded in the results views. */ -import { computed } from "vue" +import { computed, inject, ref } from "vue" import type { SupportedSearchType } from "~/constants/media" +import { IsSidebarVisibleKey } from "~/types/provides" + import VAudioTrackSkeleton from "~/components/VSkeleton/VAudioTrackSkeleton.vue" import VBone from "~/components/VSkeleton/VBone.vue" @@ -14,11 +16,9 @@ const props = withDefaults( defineProps<{ isForTab?: SupportedSearchType numElems?: number - isSidebarVisible?: boolean }>(), { isForTab: "image", - isSidebarVisible: false, } ) @@ -39,6 +39,8 @@ const elementCount = computed(() => { } return 8 }) + +const isSidebarVisible = inject(IsSidebarVisibleKey, ref(false))