Adjust modal window size in ShinyBS

I recently used shinyBS to create a modal window, as in

bsModal(id, title, trigger, ..., size) 

The size argument is either "small" or "large" (or missing).

As you can see, even a large window is quite small, and things are packed quite tightly:

enter image description here

Is there any possible hack that has discovered that can help adjust the size of the window?

+5
source share
1 answer

I know that this peak is old, but since I found a solution, I am sending it for the person coming here to find the answer. You can do this by changing the CSS style. When begging your application, it’s just for sure:

 .modal-lg { width: 4000px; } 

or

 .modal-lg { width: 95%; } 

To resize the argument size = "large" in modal or

 .modal-sm { width: 40px; } 

for a little. Of course, change px to resize as you want.

In your application, put the code here so that it is available for your application:

 dashboardBody( tags$head(tags$style(HTML(' .modal-lg { width: 4000px; } '))), #ALL YOUR APP GOES HERE ) 
+5
source

Source: https://habr.com/ru/post/1233108/


All Articles