1
0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-05-30 12:16:11 +02:00

🐛 Fix collapsable palette position

This commit is contained in:
Belén Albeza 2024-02-14 16:48:00 +01:00
parent 5cbb3f76c7
commit 4c9174969f

View file

@ -39,10 +39,7 @@
&.wide { &.wide {
width: 100%; width: 100%;
} }
&.mid-palette,
&.small-palette {
grid-template-columns: $s-64 auto 1fr;
}
.resize-area { .resize-area {
grid-area: resize; grid-area: resize;
height: $s-8; height: $s-8;
@ -108,6 +105,8 @@
width: 100%; width: 100%;
min-width: 0; min-width: 0;
} }
}
.handler { .handler {
@include buttonStyle; @include buttonStyle;
@include flexCenter; @include flexCenter;
@ -123,16 +122,21 @@
background-color: var(--palette-handler-background-color); background-color: var(--palette-handler-background-color);
} }
} }
&.hidden-bts {
right: 10px; .mid-palette,
z-index: 1; .small-palette {
grid-template-columns: $s-64 auto 1fr;
}
.hidden-bts {
right: $s-2;
z-index: $z-index-1;
width: 22px; width: 22px;
grid-template-columns: $s-8 auto 1fr; grid-template-columns: $s-8 auto 1fr;
padding: 0; padding: 0;
&.small-palette, border-inline-start: 0;
&.mid-palette { border-start-start-radius: 0;
right: 10px; border-end-start-radius: 0;
}
.palette-btn-list { .palette-btn-list {
opacity: $op-0; opacity: $op-0;
visibility: hidden; visibility: hidden;
@ -160,4 +164,3 @@
padding-bottom: $s-8; padding-bottom: $s-8;
} }
} }
}