mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
Override the z-index of Bootstrap tooltips, making it conform to CKEditor's z-index ordering.
This change overrides the z-index of Bootstrap tooltips (calculates to 1080 in the current version) to the value assigned to CKEditor Panel Balloons (calculates to 1000 in the current version) minus 1. It also removes the original override to the CKEditor Panel Balloons which forces the autocomplete box to appear above tooltips, which is no longer needed and would interfere with math preview boxes. This change fixes the regression to the [original issue][1] and the [math preview issue][2]. One notable effect is that tooltips will not cover menus when overlapped with one, including menus opened from the top-right corner. Further discussion and more extensive testing are encouraged. [1]: https://github.com/zadam/trilium/issues/1272 [2]: https://github.com/TriliumNext/Notes/issues/297
This commit is contained in:
parent
d4fa7e3fd2
commit
96fc4d3280
@ -460,6 +460,7 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th
|
||||
|
||||
.tooltip {
|
||||
font-size: var(--main-font-size) !important;
|
||||
z-index: calc(var(--ck-z-panel) - 1) !important;
|
||||
}
|
||||
|
||||
.tooltip-trigger {
|
||||
@ -960,14 +961,6 @@ li.dropdown-submenu:hover > ul.dropdown-menu {
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
/**
|
||||
ckeditor's autocomplete
|
||||
should be higher than 1070 of tooltip
|
||||
*/
|
||||
.ck.ck-balloon-panel {
|
||||
z-index: 1101;
|
||||
}
|
||||
|
||||
.area-expander {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
Loading…
x
Reference in New Issue
Block a user