bug: popover z-index

This commit is contained in:
mathuo 2025-03-17 19:29:06 +00:00
parent 6e02e59fec
commit ca7bd0a86d
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -35,7 +35,7 @@ export class PopupService extends CompositeDisposable {
const wrapper = document.createElement('div');
wrapper.style.position = 'absolute';
wrapper.style.zIndex = '99';
wrapper.style.zIndex = 'calc(var(--dv-overlay-z-index, 999) * 2)';
wrapper.appendChild(element);
const anchorBox = this._element.getBoundingClientRect();
@ -50,7 +50,7 @@ export class PopupService extends CompositeDisposable {
this._active = wrapper;
this._activeDisposable.value = new CompositeDisposable(
addDisposableListener(window, 'pointerdown', (event) => {
addDisposableListener(window, 'pointerdown', (event) => {
const target = event.target;
if (!(target instanceof HTMLElement)) {