diff --git a/front/src/assets/sidebar.scss b/front/src/assets/sidebar.scss index 7027f6f..f9e12e0 100644 --- a/front/src/assets/sidebar.scss +++ b/front/src/assets/sidebar.scss @@ -61,14 +61,19 @@ $boxShadow: 0px 0px 8px rgba(0, 0, 0, .25); box-shadow: $boxShadow; color: $textColor; + + display: flex; + flex-direction: column; + max-height: calc(100vh - 8rem); } &-accordion { padding: 1.125rem 1rem; border-bottom: 2px solid var(--primary-color); - max-height: 4rem; + min-height: 1.625rem; overflow: hidden; - transition: max-height 300ms linear; + display: flex; + flex-direction: column; &:last-child { border-bottom: none; @@ -97,13 +102,9 @@ $boxShadow: 0px 0px 8px rgba(0, 0, 0, .25); flex-shrink: 0; } } - - &.open { - max-height: 50vh; - } &-content { - max-height: 32vh; + height: calc(100% - 2rem); overflow: auto; margin-top: 1.125rem; padding-left: 2rem; diff --git a/front/src/stores/promo_sidebar.ts b/front/src/stores/promo_sidebar.ts index b5059c9..e96b40c 100644 --- a/front/src/stores/promo_sidebar.ts +++ b/front/src/stores/promo_sidebar.ts @@ -28,9 +28,6 @@ export const usePromoSidebar = defineStore('promo_sidebar', { if (target?.target) { sidebar_data.target = target.target.toString() } - if (!this.isAccOpen('desc')) { - this.accordions.push('desc') - } this.setData(sidebar_data) }