andreska commited on
Commit
31df602
·
verified ·
1 Parent(s): 4f6500e

Try to change style when embedding, so that the height is not fixed.

Browse files
Files changed (1) hide show
  1. app.py +14 -7
app.py CHANGED
@@ -23,13 +23,20 @@ context = read_dataset(dataset)
23
  st.markdown(
24
  """
25
  <style>
26
- .scrollable-div {
27
- height: 200px;
28
- width: 100%;
29
- overflow-y: auto;
30
- padding: 10px;
31
- border: 1px solid #ccc;
32
- }
 
 
 
 
 
 
 
33
  </style>
34
  """,
35
  unsafe_allow_html=True
 
23
  st.markdown(
24
  """
25
  <style>
26
+ .scrollable-div {
27
+ height: 200px;
28
+ width: 100%;
29
+ overflow-y: auto;
30
+ padding: 10px;
31
+ border: 1px solid #ccc;
32
+ }
33
+
34
+ .block-container {
35
+ padding-top: 1rem;
36
+ padding-bottom: 0rem;
37
+ padding-left: 5rem;
38
+ padding-right: 5rem;
39
+ }
40
  </style>
41
  """,
42
  unsafe_allow_html=True