seawolf2357 commited on
Commit
72e5351
1 Parent(s): 16d9900

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -8,7 +8,7 @@ st.set_page_config(layout="wide", page_title="Web UI", page_icon=":ghost:", init
8
  st.markdown("""
9
  <style>
10
  .reportview-container {
11
- background-color: #0e1117;
12
  }
13
  .sidebar .sidebar-content {
14
  background-color: #262730;
@@ -25,6 +25,12 @@ st.markdown("""
25
  .stSelectbox>div{
26
  color: white;
27
  }
 
 
 
 
 
 
28
  </style>
29
  """, unsafe_allow_html=True)
30
 
@@ -52,4 +58,18 @@ st.markdown("""
52
  width: 300px;
53
  }
54
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  """, unsafe_allow_html=True)
 
8
  st.markdown("""
9
  <style>
10
  .reportview-container {
11
+ background-color: #000000;
12
  }
13
  .sidebar .sidebar-content {
14
  background-color: #262730;
 
25
  .stSelectbox>div{
26
  color: white;
27
  }
28
+ .main .block-container {
29
+ background-color: #000000;
30
+ }
31
+ iframe {
32
+ background-color: #000000;
33
+ }
34
  </style>
35
  """, unsafe_allow_html=True)
36
 
 
58
  width: 300px;
59
  }
60
  </style>
61
+ """, unsafe_allow_html=True)
62
+
63
+ # Ensure iframes are loaded correctly
64
+ st.markdown("""
65
+ <script>
66
+ window.addEventListener('load', function() {
67
+ var iframes = document.getElementsByTagName('iframe');
68
+ for (var i = 0; i < iframes.length; i++) {
69
+ iframes[i].onload = function() {
70
+ this.style.height = this.contentWindow.document.body.scrollHeight + 'px';
71
+ }
72
+ }
73
+ });
74
+ </script>
75
  """, unsafe_allow_html=True)