bs4Dash icon indicating copy to clipboard operation
bs4Dash copied to clipboard

datamods modal tab breaks in bs4Dash ui

Open chikao0817 opened this issue 2 years ago • 3 comments

@DivadNojnarg

Hi David,

Thanks for developing bs4Dash beautiful and convenient UI. Recently, I found a good datainput package datamods.

When I test the example modal https://github.com/dreamRs/datamods/blob/master/examples/modal.R It works OK. image

But when I use it in bs4Dash The modal tabsetPanel became strange. image

Maybe two package css or js conflict?

How could I fixed this issue? Two packages are both exellent.

This is my test code. datamods_in_bs4Dash_test.zip

and my sessionInfo() image

Best,

Kao Chi

chikao0817 avatar Mar 29 '22 02:03 chikao0817

Hi, Kao I made a css modification. looks better

.nav>li {
    position: relative;
    display: block;
    padding: 10px 15px;
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
}

tabs

zpio avatar Mar 29 '22 17:03 zpio

@zpio

Thanks for css modify example. I try it and tabs looks better.

But when .nav><li> edit Also cause the siderbar padding

Before image

After setting image

Thanks for the suggestion. I will search about css modify methods.

Best

chikao0817 avatar Mar 30 '22 03:03 chikao0817

@chikao0817

Hi, You can try this:

.nav-tabs>li{
    position: relative;
    display: block;
    padding: 10px 15px 10px 15px;
}

It's removes the siderbar padding

solve1

zpio avatar Mar 30 '22 15:03 zpio