From d958b1808cf51db9d520c28661f19bf0d427c7af Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Tue, 29 Sep 2020 14:13:39 +0200 Subject: [PATCH] Make Sync Modal remember collapsed state (#1929) * Make Sync Modal remeber collapsed state This makes the sync modal use the bootstrap collapse component instead of animatecss. It also removed animatecss as it seemed to be only used there. Also, it will now remember if you collapsed it between page loads which since the new eth stuff keeps asking to configure it on my dev env. * Sync modal improvements - Use chevron icon and indicate toggle state - Smooth opening animation by toggling element without padding - Better modal content padding - Run JS immediately to prevent flickering Co-authored-by: Dennis Reimann --- .../Shared/LayoutPartials/SyncModal.cshtml | 80 +- BTCPayServer/bundleconfig.json | 1 - .../wwwroot/vendor/animatecss/animate.css | 1579 ----------------- 3 files changed, 45 insertions(+), 1615 deletions(-) delete mode 100644 BTCPayServer/wwwroot/vendor/animatecss/animate.css diff --git a/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml b/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml index fe9de061a..9ae6b9ce8 100644 --- a/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml +++ b/BTCPayServer/Views/Shared/LayoutPartials/SyncModal.cshtml @@ -1,51 +1,61 @@ @using BTCPayServer.Contracts @inject IEnumerable SyncSummaryProviders; -@if(SyncSummaryProviders.Any(provider => !provider.AllAvailable())) +@if (SyncSummaryProviders.Any(provider => !provider.AllAvailable())) { -