File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
shiny/www/shared/py-shiny/dataframe Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -484,8 +484,6 @@ export class ShinyDataFrameOutput extends HTMLElement {
484
484
485
485
const myDiv = document . createElement ( "div" ) ;
486
486
myDiv . classList . add ( "html-fill-container" , "html-fill-item" ) ;
487
- myDiv . style . marginLeft = "auto" ;
488
- myDiv . style . marginRight = "auto" ;
489
487
target . appendChild ( myDiv ) ;
490
488
491
489
this . reactRoot = createRoot ( myDiv ) ;
Original file line number Diff line number Diff line change 41
41
height : 500px ;
42
42
& :not (.scrolling ) {
43
43
height : auto ;
44
- flex-basis : 500px ;
45
44
}
46
45
47
46
> table {
203
202
}
204
203
}
205
204
}
205
+
206
+ /* Center the table when inside of a card */
207
+ .card-body .shiny-data-grid {
208
+ margin-left : auto ;
209
+ margin-right : auto ;
210
+ }
You can’t perform that action at this time.
0 commit comments