diff --git a/frontend/components/sidebar/left/SidebarLeft.vue b/frontend/components/sidebar/left/SidebarLeft.vue index 2b215e533..1f665941e 100644 --- a/frontend/components/sidebar/left/SidebarLeft.vue +++ b/frontend/components/sidebar/left/SidebarLeft.vue @@ -23,7 +23,10 @@ sidebarContentScrollable, }" > - +
( "sidebarContentScrollable", () => false ); +const applyTopShadow = ref(false); function setSidebarContentScrollable(): void { setTimeout(() => { sidebarContentScrollable.value = content.value.scrollHeight > content.value.clientHeight ? true : false; }, 50); + isAtTop(); +} + +function isAtTop(): void { + if (sidebarContentScrollable) { + applyTopShadow.value = !(content.value.scrollTop === 0); + } } const sidebarWrapper = ref(null); diff --git a/frontend/components/sidebar/left/SidebarLeftFooter.vue b/frontend/components/sidebar/left/SidebarLeftFooter.vue index b296905be..67b1fd9d4 100644 --- a/frontend/components/sidebar/left/SidebarLeftFooter.vue +++ b/frontend/components/sidebar/left/SidebarLeftFooter.vue @@ -1,6 +1,6 @@