Skip to content

Commit

Permalink
Revert "Dev-cards-bs5"
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee authored Mar 20, 2023
1 parent 19f1f38 commit efea20d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 48 deletions.
82 changes: 43 additions & 39 deletions components/base/R/ui-PlotModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ PlotModuleUI <- function(id,
flex = c(NA,1,NA,NA,NA,NA),
shiny::div(class='plotmodule-title', title=title, title),
label,
DropdownMenu(
shiny::div(class='plotmodule-info', shiny::HTML(info.text)),
width = "250px",
size = "xs",
icon = shiny::icon("info"),
status = "default"
),
options.button,
shiny::div(class='download-button', title='download', dload.button),
shiny::div(class='zoom-button', title='zoom', zoom.button)
Expand Down Expand Up @@ -234,41 +241,40 @@ PlotModuleUI <- function(id,
caption <- shiny::HTML(caption)
caption <- shiny::div(caption, class="caption")
}
div(
#class = "plotmodule",
bslib::card(
bslib::card_body_fill(
div( header, class="plotmodule-header"),
outputFunc(ns("renderfigure")) %>%
shinycssloaders::withSpinner(),
caption,
shiny::div(class="popup-modal",
modalUI(
id = ns("plotPopup"),
title = title,
size = "fullscreen",
footer = NULL,
popupfigUI()
)
),
shiny::div(class="popup-modal",
modalUI(
id = ns("plotPopup_editor"),
title = "Editor",
size = "fullscreen",
footer = NULL,
popupfigUI_editor()
)
),
shiny::tagList(
shiny::tags$head(shiny::tags$style(modaldialog.style)),
shiny::tags$head(shiny::tags$style(modalbody.style)),
shiny::tags$head(shiny::tags$style(modalcontent.style)),
shiny::tags$head(shiny::tags$style(modalfooter.none))
)
),
bslib::card_footer(shiny::HTML(info.text))
)

div( class="plotmodule",
shiny::fillCol(
flex = c(NA,1,NA,0.001,NA),
height = height.1,
div( header, class="plotmodule-header"),
outputFunc(ns("renderfigure"), width=width.1, height=height.1) %>%
shinycssloaders::withSpinner(),
caption,
shiny::div(class="popup-modal",
modalUI(
id = ns("plotPopup"),
title = title,
size = "fullscreen",
footer = NULL,
popupfigUI()
)
),
shiny::div(class="popup-modal",
modalUI(
id = ns("plotPopup_editor"),
title = "Editor",
size = "fullscreen",
footer = NULL,
popupfigUI_editor()
)
),
shiny::tagList(
shiny::tags$head(shiny::tags$style(modaldialog.style)),
shiny::tags$head(shiny::tags$style(modalbody.style)),
shiny::tags$head(shiny::tags$style(modalcontent.style)),
shiny::tags$head(shiny::tags$style(modalfooter.none))
)
)
)

}
Expand Down Expand Up @@ -301,8 +307,6 @@ PlotModuleServer <- function(
id,
function(input, output, session) {



ns <- session$ns

##--------------------------------------------------------------------------------
Expand Down Expand Up @@ -652,8 +656,8 @@ PlotModuleServer <- function(

if(is.null(func2)) func2 <- func
if(is.null(plotlib2)) plotlib2 <- plotlib
if(length(height)==1) height <- "auto"
if(length(width)==1) width <- "auto"
if(length(height)==1) height <- c(height,700)
if(length(width)==1) width <- c(width,1200)
if(length(res)==1) res <- c(res, 1.3*res)

res.1 <- res[1]
Expand Down
8 changes: 0 additions & 8 deletions scss/components/cards.scss

This file was deleted.

1 change: 0 additions & 1 deletion scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
@import "components/socialmedia.scss";
@import "components/progress.scss";
@import "components/dropdownmenu.scss";
@import "components/cards.scss";

0 comments on commit efea20d

Please sign in to comment.