chore: Fixes height issues with seconday sidebar (#5407)

This commit is contained in:
Sivin Varghese 2022-09-12 19:36:49 +05:30 committed by GitHub
parent db73d033b7
commit a680b08251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 15 deletions

View file

@ -285,8 +285,6 @@ export default {
}
.secondary-menu .nested.vertical.menu {
overflow-y: auto;
height: 100%;
margin-left: var(--space-small);
}
</style>

View file

@ -245,6 +245,8 @@ export default {
@import '~dashboard/assets/scss/woot';
.secondary-menu {
display: flex;
flex-direction: column;
background: var(--white);
border-right: 1px solid var(--s-50);
height: 100%;
@ -267,7 +269,6 @@ export default {
.menu {
padding: var(--space-small);
overflow-y: auto;
height: 94%;
}
}
</style>

View file

@ -2,6 +2,7 @@
<header class="header">
<div class="table-actions-wrap">
<div class="left-aligned-wrap">
<woot-sidemenu-icon />
<h1 class="page-title">
{{ headerTitle }}
</h1>
@ -173,11 +174,13 @@ export default {
}
.search-wrap {
width: 400px;
max-width: 400px;
min-width: 150px;
display: flex;
align-items: center;
position: relative;
margin-right: var(--space-small);
margin-left: var(--space-small);
.search-icon {
position: absolute;

View file

@ -6,17 +6,16 @@
@open-key-shortcut-modal="toggleKeyShortcutModal"
@close-key-shortcut-modal="closeKeyShortcutModal"
/>
<div v-if="portals.length">
<help-center-sidebar
:class="sidebarClassName"
:header-title="headerTitle"
:sub-title="localeName(selectedPortalLocale)"
:accessible-menu-items="accessibleMenuItems"
:additional-secondary-menu-items="additionalSecondaryMenuItems"
@open-popover="openPortalPopover"
@open-modal="onClickOpenAddCatogoryModal"
/>
</div>
<help-center-sidebar
v-if="portals.length"
:class="sidebarClassName"
:header-title="headerTitle"
:sub-title="localeName(selectedPortalLocale)"
:accessible-menu-items="accessibleMenuItems"
:additional-secondary-menu-items="additionalSecondaryMenuItems"
@open-popover="openPortalPopover"
@open-modal="onClickOpenAddCatogoryModal"
/>
<section class="app-content columns" :class="contentClassName">
<router-view />
<command-bar />

View file

@ -89,6 +89,8 @@ export default {
<style scoped lang="scss">
@import '~dashboard/assets/scss/woot';
.secondary-menu {
display: flex;
flex-direction: column;
background: var(--white);
border-right: 1px solid var(--s-50);
height: 100%;
@ -108,5 +110,10 @@ export default {
&:hover {
overflow: auto;
}
.menu {
padding: var(--space-small);
overflow-y: auto;
}
}
</style>