Skip to content

Commit

Permalink
feat: sticky sidebar on admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Oct 10, 2022
1 parent f01cb16 commit bc929c5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/apps/ui/layouts/AdminLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const appStore = useAppStore();
<div class="px-4 animate__animated animate__fadeIn flex-grow-1 container">
<div class="row gap-2">
<!-- menu -->
<div class="col-sm-12 col-lg-3 d-flex flex-column gap-3">
<div class="col-sm-12 col-lg-3 d-flex flex-column gap-3 sticky">
<!-- menu -->
<AdminMenuBar />

Expand All @@ -41,3 +41,20 @@ const appStore = useAppStore();
<RegularFooter />
</div>
</template>

<style scoped>
.sticky {
position: -webkit-sticky !important;
position: sticky !important;
top: 97px !important;
align-self: flex-start !important;
}
@media screen and (max-width: 992px) {
.sticky {
position: unset !important;
top: unset !important;
align-self: unset !important;
}
}
</style>

0 comments on commit bc929c5

Please sign in to comment.