Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions R/app_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,6 @@ app_ui <- function(request) {
),
dashboardBody(
disconnectMessage(), #Adds generic error message for any error if not already accounted for
tags$style(
HTML(
".main-footer {
background-color: white;
color: grey;
height: 65px;
padding-top: 5px;
padding-bottom: 5px;
}
.main-footer a {
color: grey;
}"
)
),
tabItems(
tabItem(
tabName = "welcome", mod_Home_ui("Home_1")
Expand Down Expand Up @@ -268,8 +254,27 @@ golem_add_external_resources <- function() {
bundle_resources(
path = app_sys("app/www"),
app_title = "Breedverse"
)
),
# Add here other external resources
# for example, you can add shinyalert::useShinyalert()
tags$style(HTML("
/* Ensure box collapse/expand buttons are always on top */
.card-tools { position: relative; z-index: 10; }
/* Make collapse/expand icons visible on white box headers */
.card-tools .btn-tool { color: #495057 !important; }
.card-tools .btn-tool:hover { color: #212529 !important; }
")),
tags$script(HTML("
$(document).ready(function() {
// On page load: mirror active class from <li> onto <a> for CSS targeting
$('#cnv_1-sample_select_tabs li.active > a').addClass('active');

// After each tab switch (content already swapped): sync active on <a> only
$(document).on('shown.bs.tab', '#cnv_1-sample_select_tabs a[data-toggle=\"tab\"]', function(e) {
$('#cnv_1-sample_select_tabs a[data-toggle=\"tab\"]').removeClass('active');
$(e.target).addClass('active');
});
});
"))
)
}
51 changes: 51 additions & 0 deletions inst/app/www/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* ── Select Samples tabsetPanel (By Sample / By Family) */

/* inactive tab - grey background */
#cnv_1-sample_select_tabs > li > a:not(.active) {
padding: 7px 22px !important;
margin-right: 6px !important;
background-color: #e9ecef !important;
border: 1px solid #dee2e6 !important;
border-bottom: none !important;
border-radius: 4px 4px 0 0 !important;
font-weight: 500 !important;
color: #495057 !important;
}

/* active tab */
#cnv_1-sample_select_tabs > li > a.active {
padding: 7px 22px !important;
margin-right: 6px !important;
background-color: #ffffff !important;
border: 1px solid #dee2e6 !important;
border-bottom: 1px solid #ffffff !important;
border-radius: 4px 4px 0 0 !important;
font-weight: 600 !important;
color: #007bff !important;
}

/* hover on inactive tab */
#cnv_1-sample_select_tabs > li > a:not(.active):hover {
background-color: #d6d8db !important;
color: #343a40 !important;
}

/* ── Ensure box collapse/expand buttons are always visible ── */
.card-tools {
position: relative;
z-index: 10;
color: black;
}

/* ── Dashboard footer ── */
.main-footer {
background-color: white;
color: grey;
height: 65px;
padding-top: 5px;
padding-bottom: 5px;
}

.main-footer a {
color: grey;
}
Loading