Skip to content

Commit

Permalink
Merge pull request #259 from andymedinadev/fix/FractionCalculationInT…
Browse files Browse the repository at this point in the history
…absLayout

Fix fraction calculation in tabs layout
  • Loading branch information
midudev authored Dec 6, 2024
2 parents 8d90deb + 6e9daa8 commit 332eec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/css/editors-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
cursor: col-resize;
background-image: url(/assets/vertical.png);
grid-area: 1 / 2 / 3 / 2;
position: relative;
box-shadow: -1px 0 0 0 var(--grid-background),
1px 0 0 0 var(--grid-background);
}
& .second-gutter,
& .last-gutter {
Expand Down
1 change: 1 addition & 0 deletions src/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const setGridLayout = (type = '') => {
...(gutters.rowGutters && {
rowGutters: gutters.rowGutters.map(formatGutters)
}),
...(type === 'tabs' && { columnMinSizes: { 0: 300 } }),
minSize: 1,
onDragEnd: saveGridTemplate
}
Expand Down

0 comments on commit 332eec7

Please sign in to comment.