mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(editor): Fix sidebar button styling (#6138)
* fix(editor): Fix sidebar button styling * Making offset equal for both button versions
This commit is contained in:
parent
71ae6c66ef
commit
a72a5112f3
|
@ -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">
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue