-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI is not displayed properly in the latest Boostrap4-based bs4Dash package #158
Comments
Can you try out the development version? Alignment should look a little better at least. If you see problems please provide screenshots. The dropdown buttons do not work in bs4. I asked the developer of bslib for any suggestions (see issue linked below). |
I have not used b4dash. Only bslib. Can you provide a minimal reproducible example? |
Please refer to the code below. library(shiny) ui <- dashboardPage( server <- function(input, output, session) { shinyFileChoose(input, "file", roots = volumes, session = session) shinyDirChoose(input, "directory", roots = volumes, session = session) shinyApp(ui, server) |
Thanks @jnhyeon. With the help of @cpsievert I think I have most of the changes addressed. However, not the issue why these windows are no longer shown in-line as they were before. Perhaps @thomasp85 has some ideas? |
Hi, @vnijs I think I've found a fix for the element distribution in the modal in Bootstrap 4 using {bslib} (and presumedly {bs4Dash}). I've just added the following to my to my CSS stylesheet, and everything looks correctly aligned in the modal: .sF-dirWindow {
display: flex;
}
.sF-breadcrumps {
width: calc(100% - 380px) !important;
} If you want, I can try adding these changes to the package and make a pull request. |
Closing. Pushing new version to CRAN soon |
Hi, this problem persists if I use a
|
Exactly, it doesn't open anything. I don't have your devtools error. I just took the previous example from jnhyeon and added the However what is a PR? I'm sorry I'm not English. |
A PR is a "Pull Request". It is a suggested fix for the problem that you are seeing. shinyFiles works as intended with |
Ah ok now I understood. I can have a look but I'm not very skilled |
@ShinyFabio I had the same problem. The solution I found is to add this line to my CSS stylesheet. .fade:not(.show) {
opacity: 1; !important
} |
@vojtam Thanks. What does this do exactly? |
I had the same problem where sf dialog window wasn't visible when using bs4Dash. Digging through developer tools revealed that this CSS class set the opacity to 0, leaving the modal window invisible. Adding the above rule to my stylesheet solved the problem. I'm aware that using !important should be avoided. |
Thank you for making such a wonderful package.
Your package works fine with Bootstarp3 based shinydashboard, shinydashboardplus packages.
However, the UI is not displayed properly in the latest Boostrap4-based bs4Dash package.
I hope your package also works well with the bs4Dash package.
Thank you.
The text was updated successfully, but these errors were encountered: