Skip to content

Commit 6bc5d37

Browse files
authored
fix: list cell width (#5854)
1 parent 8719dc1 commit 6bc5d37

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/two-mirrors-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`List.Cell`: force width/maxWidth/minWidth on children

packages/ui/src/components/List/styles.css.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ export const listCell = style({
230230
},
231231
})
232232

233+
globalStyle(`${listCell} > *`, {
234+
width: widthCell,
235+
maxWidth: maxWidthCell,
236+
minWidth: minWidthCell,
237+
})
238+
233239
globalStyle(`${listRowBase} > td:first-child`, {
234240
borderLeft: `1px solid ${theme.colors.neutral.border}`,
235241
borderRadius: ` ${theme.radii.default} 0 0 ${theme.radii.default}`,

0 commit comments

Comments
 (0)