freealise commited on
Commit
a40ebcf
·
verified ·
1 Parent(s): 3fa6d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -999,16 +999,15 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
999
  touch-action: none;
1000
  }
1001
  #compass_box {
 
1002
  top:2em;
1003
  right:3px;
1004
- position:absolute;
1005
  border:1px dashed gray;
1006
  border-radius: 50%;
1007
  width:1.5em;
1008
  height:1.5em;
1009
  padding:0;
1010
  margin:0;
1011
- z-index:101;
1012
  }
1013
  #compass {
1014
  position:absolute;
@@ -1131,12 +1130,15 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
1131
  model3D.style.left = \"0\";
1132
  model3D.style.top = \"0\";
1133
  model3D.style.zIndex = \"100\";
 
1134
  } else {
1135
  document.getElementById(window.modelContainer).appendChild(model3D);
1136
  model3D.style.position = \"initial\";
1137
  model3D.style.left = \"initial\";
1138
  model3D.style.top = \"initial\";
1139
  model3D.style.zIndex = \"initial\";
 
 
1140
  }'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></a></div>
1141
  </div>
1142
  """)
 
999
  touch-action: none;
1000
  }
1001
  #compass_box {
1002
+ position:absolute;
1003
  top:2em;
1004
  right:3px;
 
1005
  border:1px dashed gray;
1006
  border-radius: 50%;
1007
  width:1.5em;
1008
  height:1.5em;
1009
  padding:0;
1010
  margin:0;
 
1011
  }
1012
  #compass {
1013
  position:absolute;
 
1130
  model3D.style.left = \"0\";
1131
  model3D.style.top = \"0\";
1132
  model3D.style.zIndex = \"100\";
1133
+ document.getElementById(\"compass_box\").style.zIndex = \"101\";
1134
  } else {
1135
  document.getElementById(window.modelContainer).appendChild(model3D);
1136
  model3D.style.position = \"initial\";
1137
  model3D.style.left = \"initial\";
1138
  model3D.style.top = \"initial\";
1139
  model3D.style.zIndex = \"initial\";
1140
+ document.getElementById(\"compass_box\").style.zIndex = \"initial\";
1141
+ document.getElementById(\"model3D\").appendChild(document.getElementById(\"compass_box\"));
1142
  }'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></a></div>
1143
  </div>
1144
  """)