File tree 2 files changed +18
-1
lines changed
bento-design-system/src/Table
storybook/stories/Components
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ export function createTable(
249
249
function gridWidthStyle ( gridWidth : GridWidth ) : string {
250
250
return match ( gridWidth )
251
251
. with ( "fit-content" , ( ) => "max-content" )
252
- . with ( "fill-available" , ( ) => "minmax(max-content, auto" )
252
+ . with ( "fill-available" , ( ) => "minmax(max-content, auto) " )
253
253
. with ( { custom : __ . string } , ( { custom : width } ) => width )
254
254
. with ( { custom : __ . number } , ( { custom : width } ) => `${ width } px` )
255
255
. exhaustive ( ) ;
Original file line number Diff line number Diff line change @@ -295,3 +295,20 @@ export const Grouped = createStory({
295
295
data : exampleData ,
296
296
groupBy : "group" ,
297
297
} ) ;
298
+
299
+ export const WithFillColumn = createStory ( {
300
+ columns : [
301
+ tableColumn . text ( {
302
+ headerLabel : formatMessage ( "Name" ) ,
303
+ accessor : "name" ,
304
+ width : "fill-available" ,
305
+ } ) ,
306
+ tableColumn . textWithIcon ( {
307
+ headerLabel : formatMessage ( "Country" ) ,
308
+ accessor : "country" ,
309
+ iconPosition : "right" ,
310
+ hint : formatMessage ( "This is a hint" ) ,
311
+ } ) ,
312
+ ] as const ,
313
+ data : exampleData ,
314
+ } ) ;
You can’t perform that action at this time.
0 commit comments