From 0e5de89e81c388e6bd65c8eb12bc559255675221 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 11 Apr 2024 17:57:24 +1000 Subject: [PATCH] Change sidebar link behaviour so it doesnt scroll to top of screen until content has loaded and add in loading spinner for person list in sidebar --- templates/base.html | 23 +++++++++++++++++++---- templates/partials/people_link.html | 3 ++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5d5172c..d4efbf7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -69,7 +69,8 @@
+ _="on click add .hidden to #sidebar then remove .ml-64 from #main + on htmx:afterRequest go to the top of the body"> @@ -78,13 +79,27 @@ Dashboard
-