Skip to content

Commit

Permalink
Add refreshing conditional class (#140)
Browse files Browse the repository at this point in the history
* Add refreshing conditional class

* Apply conditional class to parent ul element and change refreshing style to use blur

Co-authored-by: Terence <tranced@Terences-MacBook-Air.local>
  • Loading branch information
Tranced and Terence committed Nov 4, 2021
1 parent d69ec0d commit 70ad168
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/mailbox/src/Mailbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@
}
}
ul.refreshing {
filter: blur(0.2rem);
}
.checkbox-container {
padding: 4px;
}
Expand Down Expand Up @@ -740,7 +744,7 @@
{/if}{/if}
</div>
{/if}
<ul id="mailboxlist">
<ul id="mailboxlist" class:refreshing={refreshingMailbox}>
{#each paginatedThreads as thread}
{#each [selectedThreads.has(thread) ? `Deselect thread ${thread.subject}` : `Select thread ${thread.subject}`] as selectTitle}
<li
Expand Down

1 comment on commit 70ad168

@vercel
Copy link

@vercel vercel bot commented on 70ad168 Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.