Skip to content

Commit

Permalink
Minor UI changes; treescale positioning control fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
infinity-a11y committed Feb 29, 2024
1 parent 72de29c commit 7e3531a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 32 deletions.
68 changes: 38 additions & 30 deletions App.R
Original file line number Diff line number Diff line change
Expand Up @@ -10321,45 +10321,53 @@ server <- function(input, output, session) {
# Treescale Positioning

output$upgma_treescalex <- renderUI({
sliderTextInput(
"upgma_treescale_x",
label = h5("X Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$xrange_upgma)) * 1.1),
selected = ceiling(min(plot_loc$xrange_upgma)),
hide_min_max = TRUE,
width = "150px"
)
if(!is.null(plot_loc$xrange_upgma)) {
sliderTextInput(
"upgma_treescale_x",
label = h5("X Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$xrange_upgma)) * 1.1),
selected = ceiling(min(plot_loc$xrange_upgma)),
hide_min_max = TRUE,
width = "150px"
)
}
})

output$upgma_treescaley <- renderUI({
sliderTextInput(
"upgma_treescale_y",
label = h5("Y Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$yrange_upgma)) * 1.1),
selected = 0,
hide_min_max = TRUE
)
if(!is.null(plot_loc$yrange_upgma)) {
sliderTextInput(
"upgma_treescale_y",
label = h5("Y Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$yrange_upgma)) * 1.1),
selected = 0,
hide_min_max = TRUE
)
}
})

output$nj_treescalex <- renderUI({
sliderTextInput(
"nj_treescale_x",
label = h5("X Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$xrange_nj)) * 1.1),
selected = ceiling(min(plot_loc$xrange_nj)),
hide_min_max = TRUE,
width = "150px"
)
if(!is.null(plot_loc$xrange_nj)) {
sliderTextInput(
"nj_treescale_x",
label = h5("X Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$xrange_nj)) * 1.1),
selected = ceiling(min(plot_loc$xrange_nj)),
hide_min_max = TRUE,
width = "150px"
)
}
})

output$nj_treescaley <- renderUI({
sliderTextInput(
"nj_treescale_y",
label = h5("Y Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$yrange_nj)) * 1.1),
selected = 0,
hide_min_max = TRUE
)
if(!is.null(plot_loc$yrange_nj)) {
sliderTextInput(
"nj_treescale_y",
label = h5("Y Position", style = "color:white; margin-bottom: 0px"),
choices = -1:(ceiling(max(plot_loc$yrange_nj)) * 1.1),
selected = 0,
hide_min_max = TRUE
)
}
})

# heatmap picker
Expand Down
8 changes: 6 additions & 2 deletions www/mycss.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
animation: none;
}

h1, h2, p, body {
h1, h2, h3, h4, h5, p, body {
font-family: 'Liberation Sans', sans-serif;
}

Expand Down Expand Up @@ -85,6 +85,11 @@ i.fas {
i.fas.fa-rotate {
position: relative;
left: -5px;
}

#reload_db i.fas.fa-rotate {
position: relative;
left: -5px;
top: -2px;
}

Expand Down Expand Up @@ -1467,5 +1472,4 @@ button#conf_meta_multi {
color:black;
white-space: pre-wrap;
max-width: 100%;
max-height: 500px;
}

0 comments on commit 7e3531a

Please sign in to comment.