[frontend/components] Display filter name and blur it instead of filter keyword

This commit is contained in:
pancakes 2025-03-13 13:50:06 +10:00 committed by Laura Hausmann
parent 732d7b8134
commit f50a975825
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 12 additions and 1 deletions

View file

@ -20,7 +20,8 @@
@if (NoteResponse.Filtered is not null && NoteResponse.Filtered.Hide == false)
{
<div>
@Loc["This note contains the filter keyword '{0}'", NoteResponse.Filtered.Keyword]
@Loc["This note is hidden by your filter"]
<span class="filter-name">@NoteResponse.Filtered.Name</span>
<button
@onclick="@ShowNote"
@onclick:stopPropagation="true">

View file

@ -10,4 +10,14 @@
.user {
color: var(--notice-color);
}
.filter-name {
filter: blur(0.2rem);
transition-duration: 0.2s;
transition-property: filter;
}
.filter-name:hover {
filter: blur(0);
}