Skip to content

Commit

Permalink
fix(editor): Fix sidebar button styling (#6138)
Browse files Browse the repository at this point in the history
* fix(editor): Fix sidebar button styling
* Making offset equal for both button versions
  • Loading branch information
MiloradFilipovic authored Apr 28, 2023
1 parent 71ae6c6 commit a72a511
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions packages/editor-ui/src/components/MainSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
>
<div
id="collapse-change-button"
:class="{
['clickable']: true,
[$style.sideMenuCollapseButton]: true,
[$style.expandedButton]: !isCollapsed,
}"
:class="['clickable', $style.sideMenuCollapseButton]"
@click="toggleCollapse"
></div>
>
<n8n-icon v-if="isCollapsed" icon="chevron-right" size="xsmall" class="ml-5xs" />
<n8n-icon v-else icon="chevron-left" size="xsmall" class="mr-5xs" />
</div>
<n8n-menu :items="mainMenuItems" :collapsed="isCollapsed" @select="handleSelect">
<template #header>
<div :class="$style.logo">
Expand Down Expand Up @@ -546,39 +545,16 @@ export default mixins(
z-index: 999;
display: flex;
justify-content: center;
align-items: flex-end;
align-items: center;
color: var(--color-text-base);
background-color: var(--color-foreground-xlight);
width: 20px;
height: 20px;
border: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);
text-align: center;
border-radius: 50%;
&::before {
display: block;
position: relative;
left: px;
top: -2.5px;
transform: rotate(270deg);
content: '\e6df';
font-family: element-icons;
font-size: var(--font-size-2xs);
font-weight: bold;
color: var(--color-text-base);
}
&.expandedButton {
&::before {
transform: rotate(90deg);
left: 0px;
}
}
&:hover {
&::before {
color: var(--color-primary-shade-1);
}
color: var(--color-primary-shade-1);
}
}
Expand Down

0 comments on commit a72a511

Please sign in to comment.