Skip to content

Commit

Permalink
disable htmx auto include styles for spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
DrCBeatz committed Dec 11, 2023
1 parent 56df25a commit d6c1a48
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions static/css/vc_home.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@
.fade-delay-3 {
animation-delay: 0.6s;
}

.htmx-indicator {
opacity: 0;
transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
opacity: 1;
}
.htmx-request.htmx-indicator {
opacity: 1;
}
6 changes: 5 additions & 1 deletion static/js/_base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
document.addEventListener('htmx:afterRequest', function(evt) {
if (window.htmx) {
htmx.config.includeIndicatorStyles = false;
}

document.addEventListener('htmx:afterRequest', function (evt) {
changeSelectedExpert();
});

Expand Down

0 comments on commit d6c1a48

Please sign in to comment.