Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/concrete-utopia/utopia in…
Browse files Browse the repository at this point in the history
…to fix/remove-grid-area-on-adjust
  • Loading branch information
bkrmendy committed Jul 25, 2024
2 parents 3c6ab52 + 7116c50 commit 7ace1bc
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function asMaybeNamedAreaOrValue(
value: number | string | null,
): string | number {
if (value == null) {
return 0
return 1
} else if (typeof value === 'number') {
const template = axis === 'row' ? grid.gridTemplateRows : grid.gridTemplateColumns
if (template?.type === 'DIMENSIONS') {
Expand All @@ -390,6 +390,7 @@ function asMaybeNamedAreaOrValue(
return maybeAreaStart.areaName
}
}
return value === 0 ? 1 : value
}
return value
}
Loading

0 comments on commit 7ace1bc

Please sign in to comment.