omkarenator commited on
Commit
85da60b
1 Parent(s): 888beee

add style to dropdown

Browse files
Files changed (2) hide show
  1. curated.py +2 -3
  2. style.css +2 -2
curated.py CHANGED
@@ -103,12 +103,11 @@ def get_data(data_source: str = "Freelaw", doc_id: int = 3):
103
  form = Form(
104
  Div(
105
  Label("Data source: ", drop_down),
106
- style="margin-bottom: 20px;",
107
  ),
108
  Div(
109
- Label("Data sample: ", slider, f"{doc_id}"),
110
- style="margin-bottom: 20px;",
111
  ),
 
112
  )
113
 
114
  col1 = Div(
 
103
  form = Form(
104
  Div(
105
  Label("Data source: ", drop_down),
 
106
  ),
107
  Div(
108
+ Label("Data sample: ", slider, f"{doc_id}", cls="plotly_slider"),
 
109
  ),
110
+ cls="plotly_input_container",
111
  )
112
 
113
  col1 = Div(
style.css CHANGED
@@ -38,13 +38,13 @@
38
 
39
  .plotly_input_container {
40
  display: flex;
41
- align-items: center;
42
  flex-direction: column;
43
  gap: 10px;
44
  }
45
 
46
  /* Style for the select dropdown */
47
- .plotly_input_container > select {
48
  padding: 2px 4px;
49
  /* border: 1px solid #ccc; */
50
  line-height: 1.5em;
 
38
 
39
  .plotly_input_container {
40
  display: flex;
41
+ align-items: left;
42
  flex-direction: column;
43
  gap: 10px;
44
  }
45
 
46
  /* Style for the select dropdown */
47
+ .plotly_input_container select {
48
  padding: 2px 4px;
49
  /* border: 1px solid #ccc; */
50
  line-height: 1.5em;