Skip to content
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

Texts are centered in the output when using an image as a spinner. #79

Closed
YonghuiDong opened this issue Apr 14, 2023 · 5 comments
Closed
Labels

Comments

@YonghuiDong
Copy link

Hi Dean Attali,

Thanks a lot for this great package.

I find out that the texts are centered in the output when using an image inwithSpinner() function.

Please see the example below (Sorry the image is not shown properly). How can I left align the output text?

Thanks lot.

Dong

library(shiny)

ui <- fluidPage(
  actionButton("go", "Go"),
  shinycssloaders::withSpinner(
    verbatimTextOutput("test"), 
    image = "https://imgur.com/gallery/XUomVWX"
  )
)
server <- function(input, output) {
  output$test <- renderPrint({
    input$go
    Sys.sleep(1.5)
    cat("R version 4.2.2 (2022-10-31) 
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)")
  })
}
shinyApp(ui, server)
@daattali
Copy link
Owner

Thanks for providing a reproducible example! This is indeed a bug that I never noticed. I'll take a look when I can.

@daattali
Copy link
Owner

Should be fixed now, please test it and let me know if it works or not for you.

@YonghuiDong
Copy link
Author

It works perfectly now.

Thanks a lot!

Dong

@daattali
Copy link
Owner

I see you live in my home country! Shabbat shalom :)

@YonghuiDong
Copy link
Author

@daattali,

Wow, I did not realize that you are Israeli. Shabbat shalom to you as well.

Dong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants