4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ bs3compat_layer <- function() {
80
80
" bs3compat" , packageVersion(" bootstraplib" ),
81
81
package = " bootstraplib" ,
82
82
src = " bs3compat/js" ,
83
- script = c(" tabs.js" , " bs3compat.js" )
83
+ script = c(" tabs.js" , " bs3compat.js" , " no_row_container.js " )
84
84
)
85
85
)
86
86
}
Original file line number Diff line number Diff line change
1
+ .no-row-container-bs3compat {
2
+ display : flex ;
3
+ }
4
+
5
+ .tab-content > .active.no-row-container-bs3compat {
6
+ display : flex ;
7
+ }
Original file line number Diff line number Diff line change 6
6
7
7
@import " glyphicons" ;
8
8
9
+ @import " no_row_container" ;
10
+
9
11
@import " shiny_input" ;
10
12
@import " shiny_misc" ;
Original file line number Diff line number Diff line change
1
+ // BS4 cols need their parent container to be a flex container
2
+ // in order to render properly
3
+ $ ( function ( ) {
4
+ let el = $ ( "[class*='col-sm-']" ) . parent ( ) ;
5
+ if ( el . length === 0 ) return ;
6
+ if ( ! el . hasClass ( "row" ) ) {
7
+ el . addClass ( "no-row-container-bs3compat" ) ;
8
+ }
9
+ } ) ;
0 commit comments