mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1641 from PR0M3TH3AN/fix/modal-z-index-regression-2480475608080862168
fix(ui): ensure modals render above video player
This commit is contained in:
5 files changed
+8
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<!-- components/embed-video-modal.html -->
|
||||
<div
|
||||
id="embedVideoModal"
|
||||
class="bv-modal hidden items-start justify-center md:items-center"
|
||||
class="bv-modal modal-always-on-top hidden items-start justify-center md:items-center"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="embedVideoModalTitle"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- components/share-nostr-modal.html -->
|
||||
<div
|
||||
id="shareNostrModal"
|
||||
class="bv-modal hidden items-start justify-center md:items-center"
|
||||
class="bv-modal modal-always-on-top hidden items-start justify-center md:items-center"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="shareNostrModalTitle"
|
||||
|
||||
@@ -3793,6 +3793,10 @@
|
||||
z-index: var(--z-modal-content);
|
||||
}
|
||||
|
||||
.modal-always-on-top {
|
||||
z-index: var(--z-modal-always-top) !important;
|
||||
}
|
||||
|
||||
#playerModal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
|
||||
@@ -210,6 +210,7 @@
|
||||
--z-modal-peak-root: 165;
|
||||
--z-modal-peak-overlay: 175;
|
||||
--z-modal-peak-content: 185;
|
||||
--z-modal-always-top: 200;
|
||||
--overlay-backdrop-color: var(--color-overlay-backdrop);
|
||||
--overlay-backdrop-blur: 12px;
|
||||
--sidebar-width-expanded-base: 16rem;
|
||||
|
||||
@@ -135,7 +135,7 @@ export class EventDetailsModal {
|
||||
const container = this.document.getElementById("modalContainer") || this.document.body;
|
||||
const modal = this.document.createElement("div");
|
||||
modal.id = "eventDetailsModal";
|
||||
modal.className = "bv-modal z-[140] hidden items-center justify-center p-4";
|
||||
modal.className = "bv-modal modal-always-on-top hidden items-center justify-center p-4";
|
||||
modal.innerHTML = this.buildMarkup();
|
||||
|
||||
this.root = modal;
|
||||
|
||||
Reference in new issue
Block a user