Skip to content

Commit

Permalink
Fix menu position without header figure
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Apr 11, 2019
1 parent c62fd6f commit 203df94
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/AppSidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<template>
<transition name="slide-right">
<aside id="app-sidebar">
<header class="app-sidebar-header">
<header :class="{ 'app-sidebar-header--with-figure': hasFigure }" class="app-sidebar-header">
<!-- close sidebar button -->
<a href="#" class="icon-close" :title="t('core', 'close')"
@click="closeSidebar" />
Expand Down Expand Up @@ -326,6 +326,17 @@ $desc-vertical-padding: 18px;
max-height: 50px;
align-items: center;
}
// menu without figure needs to be fixed or
// it'll go over the close icon
&:not(.app-sidebar-header--with-figure) {
.app-sidebar-header__menu {
background-color: transparent;
top: 0;
right: 44px;
margin-top: 0;
}
}
}
.app-sidebar-tabs {
&__nav {
Expand Down

0 comments on commit 203df94

Please sign in to comment.