From 4c661a5bbaf2c2cf13d22e00010ed6844ef1f62e Mon Sep 17 00:00:00 2001 From: none Date: Fri, 2 Feb 2024 21:11:15 +0300 Subject: [PATCH] =?UTF-8?q?+=20=D0=A1=D0=B2=D0=B5=D1=80=D1=85=D1=83=D0=B7?= =?UTF-8?q?=D0=BA=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BB=D0=B5=D1=84=D0=BE=D0=BD?= =?UTF-8?q?=D1=8B=20=D0=B4=D1=83=D0=B1=D0=BB=D1=8C=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/style.css | 13 ++++++++++++- site.py | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/assets/style.css b/assets/style.css index d5cd70e..91949f2 100644 --- a/assets/style.css +++ b/assets/style.css @@ -66,6 +66,15 @@ body { width: 80vh; } +.react_vol { + display: flex; + flexDirection: row; +} +.vol { + flex: 1; + padding-left: 25; + min-width: 100px; +} /* Иконка + текст слева в панели */ .img_text_panel { @@ -126,7 +135,9 @@ body { } /* Сверхузкие телефоны */ @media (max-width: 400px) { - .panel { + .react_vol { flex-direction: column; } + .vol { + padding-top: 8px; } diff --git a/site.py b/site.py index 41f2cea..a188a86 100644 --- a/site.py +++ b/site.py @@ -102,9 +102,9 @@ html.Div([ html.Div([ dcc.Dropdown(list_form([30, 50, 100, 300, 1000]), 100, id='amount', clearable=False, searchable=False , style={'font-family': '"Mulish", sans-serif', 'font-size': '120%'}) - ], style={'flex': 1, 'padding-left': 25, 'min-width': '100px'}) + ], className="vol") -], style={'display': 'flex', 'flexDirection': 'row'}), +], className="react_vol"), # Вывод html.Div(id='output', style={'text-align': 'center', 'padding-left': '15%', 'padding-right': '15%'})