Sebastiankay commited on
Commit
8c1b8eb
·
1 Parent(s): 91d62ef

3. Okt. 2024, 05:07

Browse files
Files changed (1) hide show
  1. _res/_custom.js +4 -4
_res/_custom.js CHANGED
@@ -156,18 +156,18 @@ function gradioCustomJS() {
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
  alertModalElemButton.textContent = "Ok"
 
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 = ""
168
- alertModalElem.style.display = ""
169
  alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
170
  alertModalElemButton.textContent = "Ok"
 
171
  } else {
172
  gradioContainer.classList.remove("blur-container")
173
  body.style.setProperty("--blur-value", "0px")
 
156
  gradioContainer.classList.add("blur-container")
157
  body.style.setProperty("--blur-value", "12px")
158
  gradioApp.style.height = "calc(100vh - 120px)"
159
+ resolutionModalWrapper.style.backdropFilter = "blur(12px)"
160
+ resolutionModalWrapper.style.opacity = "1"
161
  alertModalElemSpan.textContent = "Diese Seite ist nicht für mobile Geräte optimiert. Bitte besuche diese Seite von einem Desktop-Computer aus."
162
  alertModalElemButton.textContent = "Ok"
163
+ resolutionModalWrapper.style.display = ""
164
  } else if (window.innerWidth < 1024) {
165
  gradioContainer.classList.add("blur-container")
166
  body.style.setProperty("--blur-value", "12px")
167
  gradioApp.style.height = "calc(100vh - 120px)"
 
 
168
  alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
169
  alertModalElemButton.textContent = "Ok"
170
+ resolutionModalWrapper.style.display = ""
171
  } else {
172
  gradioContainer.classList.remove("blur-container")
173
  body.style.setProperty("--blur-value", "0px")