Sebastiankay commited on
Commit
6adf53c
·
verified ·
1 Parent(s): 836681b

Update _res/_custom.js

Browse files
Files changed (1) hide show
  1. _res/_custom.js +4 -3
_res/_custom.js CHANGED
@@ -229,12 +229,13 @@ function gradioCustomJS() {
229
  // '<svg xmlns="http://www.w3.org/2000/svg" class="portrait" viewBox="0 0 48 48"><g data-name="Ebene_1"><path fill="none" d="M0 48V0h48v48z"/><path d="M33.75 22.5V6.01c0-1.84-1.5-3.34-3.34-3.34H5.01c-1.84 0-3.34 1.5-3.34 3.34V22.5c0 1.84 1.5 3.34 3.34 3.34h25.4c1.84 0 3.34-1.5 3.34-3.34Zm-29.41 0V6.01c0-.37.3-.67.67-.67h25.4c.37 0 .67.3.67.67V22.5c0 .37-.3.67-.67.67H5.01a.67.67 0 0 1-.67-.67Z"/><path d="M39.65 15.1c-.41-.72-1.33-.97-2.05-.56s-.97 1.33-.56 2.05C38.32 18.84 39 21.4 39 24c0 8.27-6.73 15-15 15-5.2 0-9.91-2.61-12.68-7H16c.83 0 1.5-.67 1.5-1.5S16.83 29 16 29H7.5c-.83 0-1.5.67-1.5 1.5V39c0 .83.67 1.5 1.5 1.5S9 39.83 9 39v-5.06C12.35 39 17.9 42 24 42c9.93 0 18-8.07 18-18 0-3.12-.81-6.2-2.35-8.9Z"/></g></svg>'
230
 
231
  const switch_width_height_inner = document.createElement("div")
232
- const switch_width_height_inner_image = document.createElement("div")
233
- switch_width_height_inner_image.id = "switch_width_height_inner_image"
234
  switch_width_height_inner.id = "switch_width_height_inner"
235
  switch_width_height_inner.setAttribute("data-aspect-ratio", "9-16")
236
  switch_width_height_inner.className = "hochformat"
237
- switch_width_height_inner.append(switch_width_height_inner_image)
 
238
  switch_width_height.append(switch_width_height_inner)
239
  const switch_width_height_btn_inner = document.querySelector("div#switch_width_height_inner")
240
 
 
229
  // '<svg xmlns="http://www.w3.org/2000/svg" class="portrait" viewBox="0 0 48 48"><g data-name="Ebene_1"><path fill="none" d="M0 48V0h48v48z"/><path d="M33.75 22.5V6.01c0-1.84-1.5-3.34-3.34-3.34H5.01c-1.84 0-3.34 1.5-3.34 3.34V22.5c0 1.84 1.5 3.34 3.34 3.34h25.4c1.84 0 3.34-1.5 3.34-3.34Zm-29.41 0V6.01c0-.37.3-.67.67-.67h25.4c.37 0 .67.3.67.67V22.5c0 .37-.3.67-.67.67H5.01a.67.67 0 0 1-.67-.67Z"/><path d="M39.65 15.1c-.41-.72-1.33-.97-2.05-.56s-.97 1.33-.56 2.05C38.32 18.84 39 21.4 39 24c0 8.27-6.73 15-15 15-5.2 0-9.91-2.61-12.68-7H16c.83 0 1.5-.67 1.5-1.5S16.83 29 16 29H7.5c-.83 0-1.5.67-1.5 1.5V39c0 .83.67 1.5 1.5 1.5S9 39.83 9 39v-5.06C12.35 39 17.9 42 24 42c9.93 0 18-8.07 18-18 0-3.12-.81-6.2-2.35-8.9Z"/></g></svg>'
230
 
231
  const switch_width_height_inner = document.createElement("div")
232
+ //const switch_width_height_inner_image = document.createElement("div")
233
+ //switch_width_height_inner_image.id = "switch_width_height_inner_image"
234
  switch_width_height_inner.id = "switch_width_height_inner"
235
  switch_width_height_inner.setAttribute("data-aspect-ratio", "9-16")
236
  switch_width_height_inner.className = "hochformat"
237
+ switch_width_height_inner.innerHTML = `<div></div>`
238
+ //switch_width_height_inner.append(switch_width_height_inner_image)
239
  switch_width_height.append(switch_width_height_inner)
240
  const switch_width_height_btn_inner = document.querySelector("div#switch_width_height_inner")
241