Skip to content

Commit 87daed7

Browse files
committed
Center table only when in card body; undo flex-basis
1 parent f95e069 commit 87daed7

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

js/dataframe/styles.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
height: 500px;
4242
&:not(.scrolling) {
4343
height: auto;
44-
flex-basis: 500px;
4544
}
4645

4746
> table {
@@ -203,3 +202,9 @@
203202
}
204203
}
205204
}
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+
}

0 commit comments

Comments
 (0)