Skip to content

Commit 0aeaaa8

Browse files
committed
Mitigate table layout
1 parent 946938d commit 0aeaaa8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

panel/app.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def sensitivity_indices_table(si, inputs):
103103
frozen_rows=[-1],
104104
# page_size=5,
105105
# pagination='local',
106+
layout="fit_columns",
106107
)
107108
widget.style.apply(
108109
lambda x: ["font-style: italic"] * 3, axis=1, subset=df.index[-1]
@@ -412,16 +413,18 @@ def csv_data(
412413
pn.panel(interactive_tableau, loading_indicator=True),
413414
)
414415

415-
template.main[4:7, 0:4] = pn.Column(
416-
pn.pane.Markdown("## Sensitivity Indices", styles={"color": blue_color}),
417-
pn.panel(interactive_sensitivity_indices_table, loading_indicator=True),
418-
)
419-
420416
template.main[4:7, 6:12] = pn.Column(
421417
pn.pane.Markdown("## Details on inputs' states", styles={"color": blue_color}),
422418
pn.panel(interactive_tableau_states, loading_indicator=True),
423419
)
424420

421+
template.main[4:7, 0:4] = pn.Column(
422+
pn.pane.Markdown("## Sensitivity Indices", styles={"color": blue_color}),
423+
pn.panel(interactive_sensitivity_indices_table, loading_indicator=True),
424+
width_policy="fit",
425+
max_width=500,
426+
)
427+
425428
# Header
426429
icon_size = "1.5em"
427430

0 commit comments

Comments
 (0)