Skip to content

Commit

Permalink
fix: Update column and row to use fit items
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefcll committed Sep 28, 2024
1 parent b711611 commit d19951f
Show file tree
Hide file tree
Showing 5 changed files with 1,862 additions and 5,302 deletions.
1 change: 0 additions & 1 deletion packages/solid/components/Column/Column.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const container: NavigableConfig = {
},
base: {
display: 'flex',
flexBoundary: 'fixed',
flexDirection: 'column',
gap: theme.layout.gutterY,
transition: {
Expand Down
1 change: 0 additions & 1 deletion packages/solid/components/Row/Row.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const container: NavigableConfig = {
},
base: {
display: 'flex',
flexBoundary: 'fixed',
flexDirection: 'row',
gap: theme.layout.gutterX,
transition: {
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@solid-primitives/refs": "^1.0.8"
},
"peerDependencies": {
"@lightningtv/core": "^2.1.6",
"@lightningtv/core": "^2.1.8",
"@lightningtv/solid": "^2.1.2",
"solid-js": "*"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/solid/utils/withScrolling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ function updateLastIndex(isRow: boolean, items: ElementNode): [{ position: numbe
position: lastChild.x ?? 0,
size: lastChild.width ?? 0
},
items.width ?? 0
(items.preFlexwidth || items.width) ?? 0
];
}
return [
{
position: lastChild.y ?? 0,
size: lastChild.height ?? 0
},
items.height ?? 0
(items.preFlexheight || items.height) ?? 0
];
}
Loading

0 comments on commit d19951f

Please sign in to comment.