Skip to content

Commit

Permalink
fix(UI): minor css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliendiot42 committed Jun 25, 2024
1 parent d0d70d3 commit dac7de9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/server/server_admin.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ source("src/fun/func_admin.R", local = TRUE, encoding = "UTF-8")$value
## Main UI: ----
output$adminUI <- renderUI({
if (breederStatus() == "game master" | !gameInitialised()) {
source("src/ui/ui_admin_loggedIn.R", local = TRUE, encoding = "UTF-8")$value
return(source("src/ui/ui_admin_loggedIn.R", local = TRUE, encoding = "UTF-8")$value)
} else {
shinydashboard::box(
width = 12, title = "Content unavailable",
div(p("Sorry, you need the 'game-master' status to access this."))
return(
shinydashboard::box(
width = 12, title = "Content unavailable",
div(p("Sorry, you need the 'game-master' status to access this."))
)
)
}
})
Expand Down
14 changes: 9 additions & 5 deletions src/ui/ui_admin_loggedIn.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ if (gameInitialised()) {
style = "width: 300px; border-collapse: collapse;", # start table 1
tags$td(
style = "width: 34%; vertical-align: bottom; padding: 10px; padding-bottom: 13.8px;",
dateInput("startDate", "Date",
width = "120px"
div(style = "padding-bottom: 5px;",
dateInput("startDate", "Date",
width = "120px"
)
)
),
tags$td(
Expand All @@ -70,8 +72,10 @@ if (gameInitialised()) {
style = "width: 300px; border-collapse: collapse;", # start table 2
tags$td(
style = "width: 34%; vertical-align: bottom; padding: 10px; padding-bottom: 13.8px;",
dateInput("endDate", "Date",
width = "120px"
div(style = "padding-bottom: 5px;",
dateInput("endDate", "Date",
width = "120px"
)
)
),
tags$td(
Expand Down Expand Up @@ -364,7 +368,7 @@ game_initialisation_tab_content <- div(

list(
shinydashboard::tabBox(
width = 13, title = "Admin", id = "admin_tabset", side = "left", selected = default_tab,
width = 12, title = "Admin", id = "admin_tabset", side = "left", selected = default_tab,
tabPanel(
"Manage sessions",
manage_sessions_tab_content
Expand Down

0 comments on commit dac7de9

Please sign in to comment.