From 77ad97134eaac528a604f382601e5fbf4421b5ec Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Thu, 21 Apr 2022 11:36:53 +0200 Subject: feat(uti): Form layout Signed-off-by: Peter Mikus Change-Id: Ibea233e89ef87b684adba65ad3a4a13524d32809 --- resources/tools/dash/app/pal/trending/layout.py | 62 ++++++++++++++----------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/resources/tools/dash/app/pal/trending/layout.py b/resources/tools/dash/app/pal/trending/layout.py index a3b3fa804b..c255cc5d31 100644 --- a/resources/tools/dash/app/pal/trending/layout.py +++ b/resources/tools/dash/app/pal/trending/layout.py @@ -266,48 +266,54 @@ class Layout: class_name="g-0 p-2", children=[ dbc.Row( - class_name="gy-1", + class_name="g-0", children=[ - dbc.Label( - "Physical Test Bed Topology, NIC and Driver", - class_name="p-0" - ), - dbc.Select( - id="dd-ctrl-phy", - placeholder="Select a Physical Test Bed Topology...", - options=[ - {"label": k, "value": k} for k in self.spec_tbs.keys() + dbc.InputGroup( + [ + dbc.InputGroupText("Infra"), + dbc.Select( + id="dd-ctrl-phy", + placeholder="Select a Physical Test Bed Topology...", + options=[ + {"label": k, "value": k} for k in self.spec_tbs.keys() + ], + ), ], + class_name="mb-3", size="sm", ), ] ), dbc.Row( - class_name="gy-1", + class_name="g-0", children=[ - dbc.Label( - "Area", - class_name="p-0" - ), - dbc.Select( - id="dd-ctrl-area", - placeholder="Select an Area...", - disabled=True, + dbc.InputGroup( + [ + dbc.InputGroupText("Area"), + dbc.Select( + id="dd-ctrl-area", + placeholder="Select an Area...", + disabled=True, + ), + ], + class_name="mb-3", size="sm", ), ] ), dbc.Row( - class_name="gy-1", + class_name="g-0", children=[ - dbc.Label( - "Test", - class_name="p-0" - ), - dbc.Select( - id="dd-ctrl-test", - placeholder="Select a Test...", - disabled=True, + dbc.InputGroup( + [ + dbc.InputGroupText("Test"), + dbc.Select( + id="dd-ctrl-test", + placeholder="Select a Test...", + disabled=True, + ), + ], + class_name="mb-3", size="sm", ), ] -- cgit 1.2.3-korg