fix(front): sidebar collapsing (mobile)

This commit is contained in:
upsiflu 2025-03-27 00:05:53 +01:00
parent efc6e8a30e
commit 70c19a70b2
3 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,6 @@ store.dispatch('auth/fetchUser')
<style scoped lang="scss"> <style scoped lang="scss">
.responsive { .responsive {
display: grid !important; display: grid !important;
grid-template-columns: 100% 0 0;
grid-template-rows: min-content; grid-template-rows: min-content;
min-height: calc(100vh - 64px); min-height: calc(100vh - 64px);

View File

@ -40,7 +40,6 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
display: flex; display: flex;
min-height: 100vh;
flex-direction: column; flex-direction: column;
&.has-bottom-player { &.has-bottom-player {
padding-bottom: $bottom-player-height; padding-bottom: $bottom-player-height;

View File

@ -191,6 +191,7 @@ const moderationNotifications = computed(() =>
icon="bi-list large" icon="bi-list large"
class="hide-on-desktop" class="hide-on-desktop"
:class="$style.menu" :class="$style.menu"
:aria-pressed="isCollapsed ? undefined : true"
@click="isCollapsed=!isCollapsed" @click="isCollapsed=!isCollapsed"
/> />
</Layout> </Layout>
@ -382,7 +383,6 @@ const moderationNotifications = computed(() =>
} }
&.sticky-content { &.sticky-content {
max-height: 100dvh;
overflow: auto; overflow: auto;
top: 0; top: 0;
@ -459,7 +459,8 @@ const moderationNotifications = computed(() =>
} }
:global(.hide-on-mobile) { :global(.hide-on-mobile) {
display: none; max-height: 0px;
pointer-events: none;
} }
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
@ -470,12 +471,13 @@ const moderationNotifications = computed(() =>
} }
:global(.hide-on-mobile) { :global(.hide-on-mobile) {
display: inherit; max-height: 100dvh;
transition: all .8s;
} }
&.sticky-content { &.sticky-content {
position: sticky; position: sticky;
height: 100%; max-height: 100dvh;
} }
} }
} }