Spaces:
Sleeping
Sleeping
Fixed input field width: increased to 120px and improved alignment
Browse files
app.py
CHANGED
|
@@ -102,15 +102,20 @@ st.markdown("""
|
|
| 102 |
section[data-testid="stSidebar"] {
|
| 103 |
width: 400px !important;
|
| 104 |
}
|
| 105 |
-
/* ✅
|
| 106 |
div[data-testid="stNumberInput"] {
|
| 107 |
-
width:
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
</style>
|
| 115 |
""", unsafe_allow_html=True)
|
| 116 |
|
|
|
|
| 102 |
section[data-testid="stSidebar"] {
|
| 103 |
width: 400px !important;
|
| 104 |
}
|
| 105 |
+
/* ✅ SZEROKIE pole input - wymuszone poprzez flexbox */
|
| 106 |
div[data-testid="stNumberInput"] {
|
| 107 |
+
width: 120px !important; /* ✅ Teraz na pewno wystarczająco szerokie */
|
| 108 |
+
max-width: 100% !important;
|
| 109 |
+
display: flex !important;
|
| 110 |
+
justify-content: center;
|
| 111 |
+
align-items: center;
|
| 112 |
+
}
|
| 113 |
+
/* ✅ Dostosowanie liczników (+/-) */
|
| 114 |
+
div[data-testid="stNumberInput"] input {
|
| 115 |
+
text-align: center;
|
| 116 |
+
font-size: 16px;
|
| 117 |
+
padding: 5px;
|
| 118 |
+
}
|
| 119 |
</style>
|
| 120 |
""", unsafe_allow_html=True)
|
| 121 |
|