Skip to content

Commit

Permalink
merge: fix classic ui sidebars not sticking
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie authored Nov 29, 2023
2 parents 62bcd42 + fe7528a commit 5f3754f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ onUnmounted(() => {

&.active {
opacity: 1;
color: var(--accent);
}

&.animate {
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/ui/classic.sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ watch(defaultStore.reactiveState.menuDisplay, () => {
$nav-icon-only-width: 78px; // TODO: どこかに集約したい
$avatar-size: 32px;
$avatar-margin: 8px;

position: sticky;
top: 16px;
padding: 0 16px;
box-sizing: border-box;
width: 260px;
Expand Down
8 changes: 6 additions & 2 deletions packages/frontend/src/ui/classic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ onMounted(() => {
}

> .widgets {
//--panelBorder: none;
position: sticky;
top: 0;
width: 300px;
padding-bottom: calc(var(--margin) + env(safe-area-inset-bottom, 0px));
height: 100%;
padding-top: 16px;
box-sizing: border-box;
overflow: auto;

@media (max-width: $widgets-hide-threshold) {
display: none;
Expand Down

0 comments on commit 5f3754f

Please sign in to comment.