Joffrey Thomas commited on
Commit
456bd12
·
1 Parent(s): a3a3065
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -605,10 +605,11 @@ APP_BOOT_JS = """
605
  const img = document.getElementById('street-image');
606
  if (!btn || !wrapper || !img || btn.dataset.initialized === '1') return;
607
 
608
- const enterIcon = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"/></svg>';
609
- const exitIcon = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 0-2-2h-3m-6 0H3a2 2 0 0 0-2 2v3"/></svg>';
610
 
611
  btn.innerHTML = enterIcon;
 
612
  const originalImgStyle = {
613
  width: img.style.width,
614
  height: img.style.height,
 
605
  const img = document.getElementById('street-image');
606
  if (!btn || !wrapper || !img || btn.dataset.initialized === '1') return;
607
 
608
+ const exitIcon = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"/></svg>';
609
+ const enterIcon = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 0-2-2h-3m-6 0H3a2 2 0 0 0-2 2v3"/></svg>';
610
 
611
  btn.innerHTML = enterIcon;
612
+ const originalImgParentStyle = img.parentElement.style;
613
  const originalImgStyle = {
614
  width: img.style.width,
615
  height: img.style.height,