Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions packages/web-pkg/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ const sidebarProps = computed(() => {
'focus-visible:shadow-none',
...(unref(attrs)?.class ? [unref(attrs).class] : [])
]
if (loading) {
classes.push('flex', 'justify-center', 'items-center')
}
return {
...unref(attrs),
class: classes
Expand Down
11 changes: 8 additions & 3 deletions packages/web-pkg/src/components/SideBar/SideBarPanels.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<oc-spinner v-if="loading" :aria-label="$gettext('Loading sidebar content')" />
<template v-else>
<div class="sidebar-panels relative size-full">
<div
v-for="panel in displayPanels"
Comment on lines +2 to 4
:id="`sidebar-panel-${panel.name}`"
Expand Down Expand Up @@ -95,7 +94,13 @@
</div>
</div>
</div>
</template>
<div
v-if="loading"
class="sidebar-panels-loading absolute inset-0 z-10 flex items-center justify-center"
>
<oc-spinner :aria-label="$gettext('Loading sidebar content')" />
</div>
</div>
</template>
<script setup lang="ts">
import { computed, ref, unref } from 'vue'
Expand Down