We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd0ef4 commit b92a2a9Copy full SHA for b92a2a9
2 files changed
python/nav/web/sass/nav/navlets.scss
@@ -27,8 +27,10 @@ $fullscreen-color: #EEE;
27
margin-bottom: 1em;
28
padding: 0.5em 1em 1em 1.2em;
29
position: relative;
30
- min-height: 200px;
31
transition: box-shadow .5s;
+ &.loading {
32
+ min-height: 200px;
33
+ }
34
&.outline {
35
border: 1px dashed black;
36
}
python/nav/web/templates/navlets/_navlet_item.html
@@ -18,9 +18,11 @@
18
const spinner = new Spinner({zIndex: 10});
19
node.addEventListener('htmx:beforeRequest', function () {
20
spinner.spin(node);
21
+ node.classList.add('loading');
22
});
23
node.addEventListener('htmx:afterRequest', function () {
24
spinner.stop();
25
+ node.classList.remove('loading');
26
})
</script>
0 commit comments