Sebastiankay commited on
Commit
bde692a
·
1 Parent(s): 4447a6f

3. Okt. 2024, 04:45

Browse files
Files changed (2) hide show
  1. _res/_custom.css +2 -1
  2. _res/_custom.js +2 -3
_res/_custom.css CHANGED
@@ -2,12 +2,13 @@ body {
2
  position: relative !important;
3
  }
4
  body #resolution_modal_wrapper {
5
- position: abolute !important;
6
  inset: 0;
7
  display: flex;
8
  justify-content: center;
9
  align-items: center;
10
  backdrop-filter: blur(12px);
 
11
  }
12
  body #resolution_modal_wrapper #alertModal {
13
  position: absolute !important;
 
2
  position: relative !important;
3
  }
4
  body #resolution_modal_wrapper {
5
+ position: absolute !important;
6
  inset: 0;
7
  display: flex;
8
  justify-content: center;
9
  align-items: center;
10
  backdrop-filter: blur(12px);
11
+ z-index: 200;
12
  }
13
  body #resolution_modal_wrapper #alertModal {
14
  position: absolute !important;
_res/_custom.js CHANGED
@@ -73,7 +73,6 @@ function gradioCustomJS() {
73
  const resolutionModalWrapper = document.createElement("div")
74
  resolutionModalWrapper.id = "resolution_modal_wrapper"
75
  resolutionModalWrapper.style.display = "none"
76
- resolutionModalWrapper.style.position = "absolute"
77
  resolutionModalWrapper.className = "resolution-modal-wrapper"
78
  const alertModalElem = document.createElement("div")
79
  const alertModalElemP = document.createElement("p")
@@ -157,14 +156,14 @@ function gradioCustomJS() {
157
  gradioContainer.classList.add("blur-container")
158
  body.style.setProperty("--blur-value", "12px")
159
  gradioApp.style.height = "calc(100vh - 120px)"
160
- resolutionModalWrapper.style.display = "none"
161
  alertModalElem.style.display = ""
162
  alertModalElemSpan.textContent = "Diese Seite ist nicht für mobile Geräte optimiert. Bitte besuche diese Seite von einem Desktop-Computer aus."
163
  } else if (window.innerWidth < 1024) {
164
  gradioContainer.classList.add("blur-container")
165
  body.style.setProperty("--blur-value", "12px")
166
  gradioApp.style.height = "calc(100vh - 120px)"
167
- resolutionModalWrapper.style.display = "none"
168
  alertModalElem.style.display = ""
169
  alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
170
  } else {
 
73
  const resolutionModalWrapper = document.createElement("div")
74
  resolutionModalWrapper.id = "resolution_modal_wrapper"
75
  resolutionModalWrapper.style.display = "none"
 
76
  resolutionModalWrapper.className = "resolution-modal-wrapper"
77
  const alertModalElem = document.createElement("div")
78
  const alertModalElemP = document.createElement("p")
 
156
  gradioContainer.classList.add("blur-container")
157
  body.style.setProperty("--blur-value", "12px")
158
  gradioApp.style.height = "calc(100vh - 120px)"
159
+ resolutionModalWrapper.style.display = ""
160
  alertModalElem.style.display = ""
161
  alertModalElemSpan.textContent = "Diese Seite ist nicht für mobile Geräte optimiert. Bitte besuche diese Seite von einem Desktop-Computer aus."
162
  } else if (window.innerWidth < 1024) {
163
  gradioContainer.classList.add("blur-container")
164
  body.style.setProperty("--blur-value", "12px")
165
  gradioApp.style.height = "calc(100vh - 120px)"
166
+ resolutionModalWrapper.style.display = ""
167
  alertModalElem.style.display = ""
168
  alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
169
  } else {