Showing maintenance popup on hover over media box

This commit is contained in:
koloml committed 2024-03-30 21:44:37 +04:00
1 parent 6290aadb7e
commit ec5316774f
2 files changed
+21 -1

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ export class MaintenancePopup {
init() {
MaintenancePopup.#watchActiveProfile(activeProfile => {
this.#activeProfile = activeProfile;
this.#container.classList.toggle('is-active', activeProfile !== null);
this.#refreshTagsList();
});
}
+20 -1
View File
@@ -1 +1,20 @@
@import "../injectable/tag";
.media-box {
position: relative;
overflow: initial !important;
.maintenance-popup {
display: none;
position: absolute;
top: 100%;
padding: 5px;
left: -50%;
right: -50%;
z-index: 8;
background: #1d1924;
border: 1px solid #311e49;
}
&:hover .maintenance-popup.is-active {
display: block;
}
}