Becer commited on
Commit
bbe0bfe
·
1 Parent(s): b154ba1

Fixed input field width: increased to 120px and improved alignment

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -102,15 +102,20 @@ st.markdown("""
102
  section[data-testid="stSidebar"] {
103
  width: 400px !important;
104
  }
105
- /* ✅ Input szeroki i wyśrodkowany */
106
  div[data-testid="stNumberInput"] {
107
- width: 80% !important;
108
- margin-left: auto !important;
109
- margin-right: auto !important;
110
- }
111
- div[data-testid="stNumberInput"] {
112
- width: 80px !important;
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