@@ -435,13 +435,15 @@ storiesOf("Table", module).addDecorator(
435435 . addDecorator ( withKnobs )
436436 . add ( "default" , ( ) => ( {
437437 template : `
438- <app-table
439- [model]="model"
440- [size]="size"
441- [showSelectionColumn]="showSelectionColumn"
442- [striped]="striped"
443- [sortable]="sortable">
444- </app-table>
438+ <div style="width: 650px">
439+ <app-table
440+ [model]="model"
441+ [size]="size"
442+ [showSelectionColumn]="showSelectionColumn"
443+ [striped]="striped"
444+ [sortable]="sortable">
445+ </app-table>
446+ </div>
445447 ` ,
446448 props : {
447449 model : simpleModel ,
@@ -453,13 +455,15 @@ storiesOf("Table", module).addDecorator(
453455 } ) )
454456 . add ( "with no data" , ( ) => ( {
455457 template : `
456- <app-table
457- [model]="model"
458- [size]="size"
459- [showSelectionColumn]="showSelectionColumn"
460- [striped]="striped">
461- <tbody><tr><td class="no-data" colspan="3"><div>No data.</div></td></tr></tbody>
462- </app-table>
458+ <div style="width: 650px">
459+ <app-table
460+ [model]="model"
461+ [size]="size"
462+ [showSelectionColumn]="showSelectionColumn"
463+ [striped]="striped">
464+ <tbody><tr><td class="no-data" colspan="3"><div>No data.</div></td></tr></tbody>
465+ </app-table>
466+ </div>
463467 ` ,
464468 styles : [ `
465469 .no-data {
@@ -477,11 +481,13 @@ storiesOf("Table", module).addDecorator(
477481 } ) )
478482 . add ( "with expansion" , ( ) => ( {
479483 template : `
480- <app-expansion-table
481- [size]="size"
482- [showSelectionColumn]="showSelectionColumn"
483- [striped]="striped">
484- </app-expansion-table>
484+ <div style="width: 650px">
485+ <app-expansion-table
486+ [size]="size"
487+ [showSelectionColumn]="showSelectionColumn"
488+ [striped]="striped">
489+ </app-expansion-table>
490+ </div>
485491 ` ,
486492 props : {
487493 size : selectV2 ( "size" , { Small : "sm" , Normal : "md" , Large : "lg" } , "md" , "table-size-selection" ) ,
@@ -491,11 +497,13 @@ storiesOf("Table", module).addDecorator(
491497 } ) )
492498 . add ( "with dynamic content" , ( ) => ( {
493499 template : `
494- <app-custom-table
495- [size]="size"
496- [showSelectionColumn]="showSelectionColumn"
497- [striped]="striped">
498- </app-custom-table>
500+ <div style="width: 650px">
501+ <app-custom-table
502+ [size]="size"
503+ [showSelectionColumn]="showSelectionColumn"
504+ [striped]="striped">
505+ </app-custom-table>
506+ </div>
499507 ` ,
500508 props : {
501509 size : selectV2 ( "size" , { Small : "sm" , Normal : "md" , Large : "lg" } , "md" , "table-size-selection" ) ,
@@ -505,11 +513,13 @@ storiesOf("Table", module).addDecorator(
505513 } ) )
506514 . add ( "with overflow menu" , ( ) => ( {
507515 template : `
508- <app-overflow-table
509- [size]="size"
510- [showSelectionColumn]="showSelectionColumn"
511- [striped]="striped">
512- </app-overflow-table>
516+ <div style="width: 650px">
517+ <app-overflow-table
518+ [size]="size"
519+ [showSelectionColumn]="showSelectionColumn"
520+ [striped]="striped">
521+ </app-overflow-table>
522+ </div>
513523 ` ,
514524 props : {
515525 size : selectV2 ( "size" , { Small : "sm" , Normal : "md" , Large : "lg" } , "md" , "table-size-selection" ) ,
@@ -519,7 +529,9 @@ storiesOf("Table", module).addDecorator(
519529 } ) )
520530 . add ( "with pagination" , ( ) => ( {
521531 template : `
532+ <div style="width: 650px">
522533 <app-pagination-table [totalDataLength]="totalDataLength" [model]="model"></app-pagination-table>
534+ </div>
523535 ` ,
524536 props : {
525537 model : simpleModel ,
0 commit comments