James McCool
commited on
Commit
·
1789c18
1
Parent(s):
60a31d0
Update Dockerfile to use Python 3.13.5 and enhance Streamlit app styling with improved spacing and element dimensions for better UI consistency.
Browse files- Dockerfile +1 -1
- src/streamlit_app.py +6 -5
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
1 |
+
FROM python:3.13.5-slim
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
src/streamlit_app.py
CHANGED
@@ -36,25 +36,26 @@ st.markdown("""
|
|
36 |
<style>
|
37 |
/* Tab styling */
|
38 |
.stElementContainer [data-baseweb="button-group"] {
|
39 |
-
gap:
|
40 |
padding: 4px;
|
41 |
}
|
42 |
.stElementContainer [kind="segmented_control"] {
|
43 |
-
height:
|
44 |
white-space: pre-wrap;
|
45 |
background-color: #DAA520;
|
46 |
color: white;
|
47 |
-
border-radius:
|
48 |
gap: 1px;
|
49 |
padding: 10px 20px;
|
50 |
font-weight: bold;
|
51 |
transition: all 0.3s ease;
|
52 |
}
|
53 |
.stElementContainer [kind="segmented_controlActive"] {
|
54 |
-
height:
|
55 |
background-color: #DAA520;
|
56 |
border: 3px solid #FFD700;
|
57 |
-
|
|
|
58 |
}
|
59 |
.stElementContainer [kind="segmented_control"]:hover {
|
60 |
background-color: #FFD700;
|
|
|
36 |
<style>
|
37 |
/* Tab styling */
|
38 |
.stElementContainer [data-baseweb="button-group"] {
|
39 |
+
gap: 2.000rem;
|
40 |
padding: 4px;
|
41 |
}
|
42 |
.stElementContainer [kind="segmented_control"] {
|
43 |
+
height: 2.000rem;
|
44 |
white-space: pre-wrap;
|
45 |
background-color: #DAA520;
|
46 |
color: white;
|
47 |
+
border-radius: 20px;
|
48 |
gap: 1px;
|
49 |
padding: 10px 20px;
|
50 |
font-weight: bold;
|
51 |
transition: all 0.3s ease;
|
52 |
}
|
53 |
.stElementContainer [kind="segmented_controlActive"] {
|
54 |
+
height: 3.000rem;
|
55 |
background-color: #DAA520;
|
56 |
border: 3px solid #FFD700;
|
57 |
+
border-radius: 10px;
|
58 |
+
color: black;
|
59 |
}
|
60 |
.stElementContainer [kind="segmented_control"]:hover {
|
61 |
background-color: #FFD700;
|