Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 扩大R中的通知弹出窗口?_Css_R_User Interface_Shiny - Fatal编程技术网

Css 扩大R中的通知弹出窗口?

Css 扩大R中的通知弹出窗口?,css,r,user-interface,shiny,Css,R,User Interface,Shiny,如何在R中扩大通知?现在它正在切断更长的错误消息 library(shiny) ui <- fluidPage( actionButton("test", "Test") ) server <- function(input, output, session) { observeEvent(input$test, { showNotification("You did it! Now make me wider

如何在R中扩大通知?现在它正在切断更长的错误消息

library(shiny)

ui <- fluidPage(
  actionButton("test", "Test")
)

server <- function(input, output, session) {
  observeEvent(input$test, {
      showNotification("You did it! Now make me wider", type = "message")
  })
}

shinyApp(ui, server)
库(闪亮)

uiCSS调整通知宽度

/* Put shiny notifications front and center */
#shiny-notification-panel {
  top: 0;
  bottom: unset;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 450px;
}

CSS可调整闪亮通知的宽度

/* Put shiny notifications front and center */
#shiny-notification-panel {
  top: 0;
  bottom: unset;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 450px;
}