0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-31 09:01:20 -05:00

🐛 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 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)
- Fix percent calculation on grid layout tracks [Github #4688](https://github.com/penpot/penpot/issues/4688)
## 2.2.1

View file

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

View file

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