Skip to content

Commit c8dfc58

Browse files
author
Jan Kees
committed
placed buttons in footer
1 parent 1ae0d56 commit c8dfc58

File tree

2 files changed

+28
-17
lines changed

2 files changed

+28
-17
lines changed

ui.R

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ui <- fluidPage(
8080
sidebarLayout(
8181
sidebarPanel(
8282
width = 3,
83-
style = "height: 90vh; overflow-y: auto;",
83+
style = "height: 85vh; overflow-y: auto;",
8484
# --- Collapsible About Box ---
8585
tags$head(
8686
tags$link(rel = "stylesheet", href = "https://fonts.googleapis.com/icon?family=Material+Icons"),
@@ -219,7 +219,7 @@ ui <- fluidPage(
219219

220220
mainPanel(
221221
width = 9,
222-
style = "height: 90%; overflow-y: auto;",
222+
style = "height: 85%; overflow-y: auto;",
223223
tags$head(tags$style(
224224
# Corrected escaping for the CSS content within HTML()
225225
# HTML(".sep {
@@ -330,20 +330,31 @@ ui <- fluidPage(
330330
plotlyOutput("combined_plot")
331331
)
332332
),
333-
334-
# === Download Button Row ===
335-
fluidRow(
336-
column(
337-
12,
338-
div(
339-
style = "margin-top: 20px;",
340-
downloadButton("download_plotly", "Download activity pattern plot (.html)"),
341-
downloadButton("download_csv", "Download Data (.csv)")
342-
)
343-
)
344-
)
345-
)
346-
),
333+
),
334+
),
335+
# === Download Button Row ===
336+
tags$footer(
337+
fluidRow(
338+
column(
339+
12,
340+
div(
341+
style = "text-align: center;",
342+
downloadButton("download_plotly", "Download activity pattern plot (.html)"),
343+
downloadButton("download_csv", "Download Data (.csv)"),
344+
style = paste(
345+
"position: fixed;",
346+
"bottom: 0;",
347+
"left: 0;",
348+
"width: 100%;",
349+
"background-color: #fff;",
350+
"padding: 10px;",
351+
"box-shadow: 0 -2px 5px rgba(0,0,0,0.1);",
352+
sep = " "
353+
)
354+
)
355+
)
356+
)
357+
),
347358
# tabPanel(
348359
# i18n$t("labels.rawConceptsTab"),
349360
# fluidRow(column(

www/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ body {
8080
border-radius: 10px; /* rounded corners */
8181
box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* optional drop-shadow */
8282
overflow: hidden; /* clip child content to rounded corners */
83-
height: 90vh; /* hoogte = xx% van viewport */
83+
height: 80vh; /* hoogte = xx% van viewport */
8484
overflow-y: auto; /* scrollen als inhoud groter is */
8585
}
8686

0 commit comments

Comments
 (0)