Skip to content

Commit

Permalink
Hide notification pane before page has fully loaded (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Oct 29, 2023
1 parent f93e767 commit 15055c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/static/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ body {
cursor: pointer;
}

[x-cloak] { display: none !important; }

.htmx-request {
opacity: 0.5;
transition: opacity 300ms linear;
Expand Down
2 changes: 1 addition & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{% endif %}
</span>
</a>
<div class="notification-dropdown shadow-lg border border-2 bg-light" x-show="open" @click.outside="open = false" x-transition>
<div class="notification-dropdown shadow-lg border border-2 bg-light" x-show="open" @click.outside="open = false" x-cloak x-transition>
<div class="item title my-0">
Notifications
</div>
Expand Down

0 comments on commit 15055c9

Please sign in to comment.