Spaces:
Paused
Paused
Update app.py via AI Editor
Browse files
app.py
CHANGED
@@ -367,27 +367,30 @@ def get_right_col_content(selected_type, store_data):
|
|
367 |
controls.append(
|
368 |
dbc.Card(
|
369 |
dbc.CardBody(
|
370 |
-
|
371 |
-
id='
|
372 |
-
|
373 |
-
|
374 |
-
'
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
|
|
|
|
|
|
379 |
)
|
380 |
),
|
381 |
style={
|
382 |
'marginBottom': '10px',
|
383 |
-
'height': 'calc(100vh -
|
384 |
-
'maxHeight': '
|
385 |
-
'minHeight': '
|
386 |
'boxSizing': 'border-box'
|
387 |
}
|
388 |
)
|
389 |
)
|
390 |
-
return dbc.Card(dbc.CardBody(controls))
|
391 |
|
392 |
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP], suppress_callback_exceptions=True)
|
393 |
|
@@ -414,7 +417,7 @@ app.layout = dbc.Container([
|
|
414 |
dbc.Col(
|
415 |
dcc.Loading(
|
416 |
id="main-progress-dot",
|
417 |
-
type="
|
418 |
children=html.Div(id="main-progress-dot-output"),
|
419 |
style={'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height':'40px'}
|
420 |
),
|
@@ -437,7 +440,7 @@ app.layout = dbc.Container([
|
|
437 |
dbc.Col(
|
438 |
html.Div([
|
439 |
html.Div(id='right-col-content')
|
440 |
-
]),
|
441 |
width=9
|
442 |
)
|
443 |
], align='start')
|
|
|
367 |
controls.append(
|
368 |
dbc.Card(
|
369 |
dbc.CardBody(
|
370 |
+
dcc.Loading(
|
371 |
+
id='preview-loading',
|
372 |
+
type='default',
|
373 |
+
children=html.Div(
|
374 |
+
id='document-preview',
|
375 |
+
style={
|
376 |
+
'height': '100%',
|
377 |
+
'overflowY': 'auto',
|
378 |
+
'overflowX': 'auto',
|
379 |
+
'padding': '8px'
|
380 |
+
}
|
381 |
+
)
|
382 |
)
|
383 |
),
|
384 |
style={
|
385 |
'marginBottom': '10px',
|
386 |
+
'height': 'calc(100vh - 155px)',
|
387 |
+
'maxHeight': '820px',
|
388 |
+
'minHeight': '460px',
|
389 |
'boxSizing': 'border-box'
|
390 |
}
|
391 |
)
|
392 |
)
|
393 |
+
return dbc.Card(dbc.CardBody(controls), style={'height': 'calc(100vh - 140px)', 'maxHeight': '820px', 'minHeight': '460px', 'boxSizing': 'border-box'})
|
394 |
|
395 |
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP], suppress_callback_exceptions=True)
|
396 |
|
|
|
417 |
dbc.Col(
|
418 |
dcc.Loading(
|
419 |
id="main-progress-dot",
|
420 |
+
type="default",
|
421 |
children=html.Div(id="main-progress-dot-output"),
|
422 |
style={'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height':'40px'}
|
423 |
),
|
|
|
440 |
dbc.Col(
|
441 |
html.Div([
|
442 |
html.Div(id='right-col-content')
|
443 |
+
], style={'height': 'calc(100vh - 140px)', 'maxHeight': '820px', 'minHeight': '460px', 'boxSizing': 'border-box'}),
|
444 |
width=9
|
445 |
)
|
446 |
], align='start')
|