[frontend/components] Display filter name and blur it instead of filter keyword
This commit is contained in:
parent
732d7b8134
commit
f50a975825
2 changed files with 12 additions and 1 deletions
|
@ -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">
|
||||
|
|
|
@ -11,3 +11,13 @@
|
|||
.user {
|
||||
color: var(--notice-color);
|
||||
}
|
||||
|
||||
.filter-name {
|
||||
filter: blur(0.2rem);
|
||||
transition-duration: 0.2s;
|
||||
transition-property: filter;
|
||||
}
|
||||
|
||||
.filter-name:hover {
|
||||
filter: blur(0);
|
||||
}
|
Loading…
Add table
Reference in a new issue