0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 14:12:36 -05:00

Fix drop-down button spacing

This commit is contained in:
Florian Schroedl 2024-05-29 09:23:47 +02:00
parent 5c83247256
commit fb5f7e870a
2 changed files with 3 additions and 2 deletions

View file

@ -249,8 +249,8 @@
:type type})]) :type type})])
(when (seq options) (when (seq options)
[:span {:class (stl/css :dropdown-button) [:div {:class (stl/css :dropdown-button)
:on-click toggle-dropdown} :on-click toggle-dropdown}
i/arrow]) i/arrow])
(when (and is-open? (seq options)) (when (and is-open? (seq options))

View file

@ -30,6 +30,7 @@
.dropdown-button { .dropdown-button {
@include flexCenter; @include flexCenter;
margin-right: -$s-8; margin-right: -$s-8;
padding-right: $s-8;
padding-left: 0; padding-left: 0;
aspect-ratio: 0.8 / 1; aspect-ratio: 0.8 / 1;
width: auto; width: auto;