From fd63de24e37bcc6135241414615d77ca7e4e280c Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 23 Jul 2024 12:19:47 +0300 Subject: [PATCH] Fix a bug where the navigation product switch was stuck on the initial load https://forum.virtualmin.com/t/theme-version-21-20-1/128069/11?u=ilia --- authentic-lib.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/authentic-lib.pl b/authentic-lib.pl index b87c97e39..d7ec8bf5b 100644 --- a/authentic-lib.pl +++ b/authentic-lib.pl @@ -1892,8 +1892,13 @@ sub init sub content { # Mobile toggle - print '
'; + my $nav_collapsed = $theme_config{'settings_navigation_always_collapse'} eq 'true' ? 1 : 0; + my $nav_styles_extra = get_filters(); + if ($nav_collapsed) { + $nav_styles_extra .= " transform: translate(0px, 0px);"; + } + print '
"; print '