From de747811d596b060f0c793c0384f95a1594d32db Mon Sep 17 00:00:00 2001 From: Brad Brown Date: Mon, 6 Jun 2022 08:12:54 -0500 Subject: [PATCH] scrollable score list --- wordlinator/web/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wordlinator/web/__init__.py b/wordlinator/web/__init__.py index 3acdc97..a496a71 100644 --- a/wordlinator/web/__init__.py +++ b/wordlinator/web/__init__.py @@ -137,7 +137,14 @@ def get_scores(): return dash.dash_table.DataTable( table_rows, columns, - style_table={"width": "80%", "margin": "auto"}, + style_table={ + "width": "80%", + "margin": "auto", + "height": "600px", + "overflowY": "auto", + }, + fixed_rows={"headers": True, "data": 0}, + filter_action="native", style_cell={"textAlign": "center"}, style_data={"width": "10%"}, style_as_list_view=True,