mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Fix sidebar logo container layout (#13203)
This commit is contained in:
@@ -339,7 +339,12 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
</template>
|
||||
</i18n-t>
|
||||
</template>
|
||||
<N8nIcon icon="lock" size="xsmall" :class="$style.readOnlyEnvironmentIcon" />
|
||||
<N8nIcon
|
||||
data-test-id="read-only-env-icon"
|
||||
icon="lock"
|
||||
size="xsmall"
|
||||
:class="$style.readOnlyEnvironmentIcon"
|
||||
/>
|
||||
</N8nTooltip>
|
||||
</Logo>
|
||||
<N8nNavigationDropdown
|
||||
@@ -368,7 +373,18 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
</N8nTooltip>
|
||||
</template>
|
||||
<template #[createProjectAppendSlotName]="{ item }">
|
||||
<N8nTooltip v-if="item.disabled" placement="right" :content="projectsLimitReachedMessage">
|
||||
<N8nTooltip
|
||||
v-if="sourceControlStore.preferences.branchReadOnly"
|
||||
placement="right"
|
||||
:content="i18n.baseText('readOnlyEnv.cantAdd.project')"
|
||||
>
|
||||
<N8nIcon style="margin-left: auto; margin-right: 5px" icon="lock" size="xsmall" />
|
||||
</N8nTooltip>
|
||||
<N8nTooltip
|
||||
v-else-if="item.disabled"
|
||||
placement="right"
|
||||
:content="projectsLimitReachedMessage"
|
||||
>
|
||||
<N8nButton
|
||||
:size="'mini'"
|
||||
style="margin-left: auto"
|
||||
@@ -462,19 +478,17 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
|
||||
<style lang="scss" module>
|
||||
.sideMenu {
|
||||
display: grid;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
border-right: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);
|
||||
transition: width 150ms ease-in-out;
|
||||
width: $sidebar-expanded-width;
|
||||
padding-top: 54px;
|
||||
min-width: $sidebar-expanded-width;
|
||||
max-width: 244px;
|
||||
background-color: var(--menu-background, var(--color-background-xlight));
|
||||
|
||||
.logo {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--spacing-xs);
|
||||
@@ -489,7 +503,7 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
|
||||
&.sideMenuCollapsed {
|
||||
width: $sidebar-width;
|
||||
padding-top: 100px;
|
||||
min-width: auto;
|
||||
|
||||
.logo {
|
||||
flex-direction: column;
|
||||
@@ -589,6 +603,6 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
align-self: center;
|
||||
padding: 2px;
|
||||
border-radius: var(--border-radius-small);
|
||||
margin: 5px 5px 0;
|
||||
margin: 7px 12px 0 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user