🐛 Fix percent calculation on grid layout tracks

This commit is contained in:
alonso.torres 2024-10-14 10:07:07 +02:00
parent 3a9119cf29
commit a25abd0ca4
3 changed files with 3 additions and 1 deletions

View file

@ -43,6 +43,7 @@
- Fix problem with shortcuts in text editor [Github #5078](https://github.com/penpot/penpot/issues/5078) - Fix problem with shortcuts in text editor [Github #5078](https://github.com/penpot/penpot/issues/5078)
- Fix problems with show in viewer and interactions [Github #4868](https://github.com/penpot/penpot/issues/4868) - Fix problems with show in viewer and interactions [Github #4868](https://github.com/penpot/penpot/issues/4868)
- Add visual feedback when moving an element into a board [Github #3210](https://github.com/penpot/penpot/issues/3210) - Add visual feedback when moving an element into a board [Github #3210](https://github.com/penpot/penpot/issues/3210)
- Fix percent calculation on grid layout tracks [Github #4688](https://github.com/penpot/penpot/issues/4688)
## 2.2.1 ## 2.2.1

View file

@ -677,7 +677,7 @@
[{:keys [type value]}] [{:keys [type value]}]
(case type (case type
:auto "auto" :auto "auto"
:percent (fmt/format-percent value) :percent (fmt/format-percent (/ value 100))
:flex (fmt/format-frs value) :flex (fmt/format-frs value)
:fixed (fmt/format-pixels value) :fixed (fmt/format-pixels value)
value)) value))

View file

@ -150,6 +150,7 @@
.grid-layout-menu { .grid-layout-menu {
@include flexColumn; @include flexColumn;
gap: $s-8; gap: $s-8;
overflow: hidden;
.row { .row {
@include flexRow; @include flexRow;