czczup commited on
Commit
ff20f69
1 Parent(s): ff93aa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -23
app.py CHANGED
@@ -5,46 +5,34 @@ st.set_page_config(layout="wide")
5
  st.markdown(
6
  """
7
  <style>
8
- .fullScreenFrame {
9
- position: relative;
10
- padding-bottom: 56.25%; /* Aspect ratio */
11
- height: 0;
12
- overflow: hidden;
13
- max-width: 100%;
14
  margin: 0;
15
  padding: 0;
 
 
16
  border: none;
 
 
17
  }
18
 
19
- .fullScreenFrame iframe {
20
- position: absolute;
21
  top: 0;
22
  left: 0;
23
- width: 100%;
24
- height: 100%;
25
- border: none;
26
- margin: 0;
27
- padding: 0;
28
  }
29
 
30
- /* Ensure body and html have no margin/padding */
31
- body, html {
32
- margin: 0;
33
- padding: 0;
34
- height: 100%;
35
- width: 100%;
36
- }
37
-
38
- /* Remove any Streamlit container padding */
39
  .main .block-container {
40
  padding: 0;
41
  margin: 0;
 
42
  }
43
  </style>
44
  """,
45
  unsafe_allow_html=True,
46
  )
47
-
48
  # Embed the external Streamlit webpage
49
  st.markdown(
50
  """
 
5
  st.markdown(
6
  """
7
  <style>
8
+ html, body, .fullScreenFrame, .fullScreenFrame iframe {
 
 
 
 
 
9
  margin: 0;
10
  padding: 0;
11
+ height: 100%;
12
+ width: 100%;
13
  border: none;
14
+ display: block;
15
+ overflow: hidden;
16
  }
17
 
18
+ .fullScreenFrame {
19
+ position: fixed;
20
  top: 0;
21
  left: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ z-index: 9999;
 
 
25
  }
26
 
 
 
 
 
 
 
 
 
 
27
  .main .block-container {
28
  padding: 0;
29
  margin: 0;
30
+ height: 100vh;
31
  }
32
  </style>
33
  """,
34
  unsafe_allow_html=True,
35
  )
 
36
  # Embed the external Streamlit webpage
37
  st.markdown(
38
  """