From aa9a4a66737e13f1ee768a1d2b00aba63c25d160 Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Tue, 21 Mar 2023 11:41:13 -0500 Subject: [PATCH] Wrap text in Flask GUI tables fixing long kernelNames Signed-off-by: coleramos425 [ROCm/rocprofiler-compute commit: a9742915b51d6e42093d90aeebbcc4c38ec7aac3] --- .../rocprofiler-compute/src/omniperf_analyze/utils/gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/src/omniperf_analyze/utils/gui.py b/projects/rocprofiler-compute/src/omniperf_analyze/utils/gui.py index 76886f5815..d3b7a0c4e5 100644 --- a/projects/rocprofiler-compute/src/omniperf_analyze/utils/gui.py +++ b/projects/rocprofiler-compute/src/omniperf_analyze/utils/gui.py @@ -343,6 +343,8 @@ def build_table_chart( style_cell_conditional=[ {"if": {"column_id": display_columns[0]}, "textAlign": "left"} ], + # style cell + style_cell={"maxWidth": "500px"}, # display style style_header={ "backgroundColor": "rgb(30, 30, 30)", @@ -351,7 +353,7 @@ def build_table_chart( } if IS_DARK else {}, - style_data={"backgroundColor": "rgb(50, 50, 50)", "color": "white"} + style_data={"backgroundColor": "rgb(50, 50, 50)", "color": "white", "whiteSpace": "normal", "height": "auto"} if IS_DARK else {}, style_data_conditional=[