Hi
I’m trying to align the two columns inside a tab to remove the whitespace seen in attached image between dropdown and graph. When viewed on a normal screen they align great, but not on a large screen.
Here is my code:
dropdown3 = html.Div(
[
dbc.Row(
[
dbc.Col(html.H6("""Select y-axis"""), width='80%'),
dcc.Dropdown(
id='y', value="cv_accuracy_top", clearable=False, searchable=False,
options=[
{"label": "CV", "value": "cv_accuracy_top"},
{"label": "Solr", "value": "solr_cv_accuracy_top"},
{"label": "Combi", "value": "combined_cv_accuracy_top"},
{"label": "MAP", "value": "document_map_top"}
],
placeholder=" ",
style={
# 'width': '80%',
'verticalAlign': 'top'
}
)
], className="g-0", align="center", justify='start'),
],
style=dict(
display='flex',
verticalAlign="middle",
# width='90%'
)
)
dbc.Container(fluid=True, children=[
html.Div([dcc.Store(id="store"), # this is the store that holds the data
html.Div(id="onload"), # this div is used to trigger the query_df function on page load
html.Div(id="log")]),
# Top
html.H1(config.name, id="nav-pills"),
navbar,
html.Br(), html.Br(), html.Br(),
# Body
dbc.Row([
# input + panel
dbc.Col(md=3, children=[
html.H4("Select Knowledge Base"),
dropdown1,
html.Br(), html.Br(), html.Br(),
html.Div(id="output-panel")
]),
# plots
dbc.Col(md=9, children=[
html.H4("Select Model Trend"),
dropdown2,
dbc.Tabs(style={"margin-top": "5px"}, className="nav nav-pills", children=[
dbc.Tab(dcc.Graph(id="plot-table"), label="Production Table"),
dbc.Tab(
children=dbc.Row(
[
dbc.Col(dropdown3, style={'margin-left': 0}),
dbc.Col(dcc.Graph(id="plot-CV-top3"), style={'margin-left': 0})
],
className="g-0", align="center", justify='start'), label="Top 3 Accuracy"
)
])
])
])
])
I expect both columns to align to the left, instead the graph is moving to the right.