From c96cc8d9416215704ab3438c9065f761c1be7259 Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 21:01:03 +0300 Subject: [PATCH 1/6] fix shrinked sidebar expanding when navigating by clicking on icons --- resources/views/layout/default.twig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig index 6a69ccbf9b..4976564f65 100644 --- a/resources/views/layout/default.twig +++ b/resources/views/layout/default.twig @@ -92,8 +92,19 @@ {# favicons #} {% include 'partials.favicons' %} + +
@@ -297,5 +308,19 @@ + + From 62ee37f6318dca99d1979de922e8830127701825 Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 21:17:19 +0300 Subject: [PATCH 2/6] implement collapse save in v1 --- public/v1/js/ff/firefly.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js index 846971fb5b..b1d58519af 100644 --- a/public/v1/js/ff/firefly.js +++ b/public/v1/js/ff/firefly.js @@ -56,6 +56,20 @@ $(function () { return false; }); + // save sidebar collapsed state when page loads. + $(document).on('click', '[data-toggle="push-menu"]', function () { + setTimeout(function () { + try { + if (window.localStorage) { + localStorage.setItem( + 'ff3_sidebar_collapsed', + $('body').hasClass('sidebar-collapse') ? '1' : '0' + ); + } + } catch (e) {} + }, 0); + }); + // on submit of form, disable any button in form: $('form.form-horizontal:not(.nodisablebutton)').on('submit', function () { $('button[type="submit"]').prop('disabled', true); From ea57a0a8c8fc68b0ea2f8e95afd565c55667685d Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 21:49:37 +0300 Subject: [PATCH 3/6] remove code from default twig --- resources/views/layout/default.twig | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig index 4976564f65..c9ffd144ad 100644 --- a/resources/views/layout/default.twig +++ b/resources/views/layout/default.twig @@ -95,16 +95,6 @@ -
@@ -308,19 +298,6 @@ - From 7b0e40543bb50557a9a119a3b626322e94eb12ce Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 22:26:38 +0300 Subject: [PATCH 4/6] all code in firefly js --- public/v1/js/ff/firefly.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js index b1d58519af..166bfe3f03 100644 --- a/public/v1/js/ff/firefly.js +++ b/public/v1/js/ff/firefly.js @@ -70,6 +70,15 @@ $(function () { }, 0); }); + (function () { + try { + if (localStorage.getItem('ff3_sidebar_collapsed') === '1') { + document.body.classList.add('sidebar-collapse'); + } + } catch (_) {} + })(); + + // on submit of form, disable any button in form: $('form.form-horizontal:not(.nodisablebutton)').on('submit', function () { $('button[type="submit"]').prop('disabled', true); From 8b14a119690ddceb240267a75c6a98a7ba04a91f Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 22:28:06 +0300 Subject: [PATCH 5/6] lines --- resources/views/layout/default.twig | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig index c9ffd144ad..6a69ccbf9b 100644 --- a/resources/views/layout/default.twig +++ b/resources/views/layout/default.twig @@ -92,7 +92,6 @@ {# favicons #} {% include 'partials.favicons' %} -
@@ -298,6 +297,5 @@ - From 1ebff22785b2ff7dac925ad0a6215185dbebeaa6 Mon Sep 17 00:00:00 2001 From: tasnim0tantawi Date: Fri, 24 Apr 2026 22:42:22 +0300 Subject: [PATCH 6/6] fix delay --- public/v1/js/ff/firefly.js | 7 ------- resources/views/layout/default.twig | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js index 166bfe3f03..1df2ab15ce 100644 --- a/public/v1/js/ff/firefly.js +++ b/public/v1/js/ff/firefly.js @@ -70,13 +70,6 @@ $(function () { }, 0); }); - (function () { - try { - if (localStorage.getItem('ff3_sidebar_collapsed') === '1') { - document.body.classList.add('sidebar-collapse'); - } - } catch (_) {} - })(); // on submit of form, disable any button in form: diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig index 6a69ccbf9b..a9ca7154f1 100644 --- a/resources/views/layout/default.twig +++ b/resources/views/layout/default.twig @@ -94,6 +94,16 @@ +