mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
style(next): fix broken backdrop blur when scrolling dropdowns
This commit is contained in:
parent
7514e2348c
commit
bc82cdbd01
@ -27,7 +27,7 @@ const TPL = `
|
|||||||
<span class="editability-active-desc">${t("editability_select.auto")}</span>
|
<span class="editability-active-desc">${t("editability_select.auto")}</span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="editability-dropdown dropdown-menu dropdown-menu-right">
|
<div class="editability-dropdown dropdown-menu dropdown-menu-right tn-dropdown-list">
|
||||||
<a class="dropdown-item" href="#" data-editability="auto">
|
<a class="dropdown-item" href="#" data-editability="auto">
|
||||||
<span class="check">✓</span>
|
<span class="check">✓</span>
|
||||||
${t("editability_select.auto")}
|
${t("editability_select.auto")}
|
||||||
|
@ -40,7 +40,7 @@ const TPL = `
|
|||||||
<span class="note-type-desc"></span>
|
<span class="note-type-desc"></span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="note-type-dropdown dropdown-menu dropdown-menu-left"></div>
|
<div class="note-type-dropdown dropdown-menu dropdown-menu-left tn-dropdown-list"></div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -951,6 +951,9 @@ body.mobile .note-title {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Menus
|
* Menus
|
||||||
|
*
|
||||||
|
* Note: apply the "tn-dropdown-list" class for scrollable dropdown menus. Submenus are not
|
||||||
|
* supported when this class is used.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
@ -982,6 +985,14 @@ body.desktop .dropdown-menu::before {
|
|||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.desktop .dropdown-menu.tn-dropdown-list {
|
||||||
|
backdrop-filter: var(--dropdown-backdrop-filter);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.desktop .dropdown-menu.tn-dropdown-list::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
body.desktop .dropdown-submenu .dropdown-menu::before {
|
body.desktop .dropdown-submenu .dropdown-menu::before {
|
||||||
content: unset;
|
content: unset;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user