[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)
|
@if (NoteResponse.Filtered is not null && NoteResponse.Filtered.Hide == false)
|
||||||
{
|
{
|
||||||
<div>
|
<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
|
<button
|
||||||
@onclick="@ShowNote"
|
@onclick="@ShowNote"
|
||||||
@onclick:stopPropagation="true">
|
@onclick:stopPropagation="true">
|
||||||
|
|
|
@ -10,4 +10,14 @@
|
||||||
|
|
||||||
.user {
|
.user {
|
||||||
color: var(--notice-color);
|
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