aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/html/util/widgets.js
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2024-12-12 14:27:33 +0100
committerGitHub Enterprise <[email protected]>2024-12-12 14:27:33 +0100
commit774eb5623fe23137b70a673cfda7365f2ab53d13 (patch)
tree17cd46389ede42fb6d9146dd86ed1af15ce957be /src/zenserver/frontend/html/util/widgets.js
parent5.5.16-pre1 (diff)
downloadzen-774eb5623fe23137b70a673cfda7365f2ab53d13.tar.xz
zen-774eb5623fe23137b70a673cfda7365f2ab53d13.zip
Dashboard: view -> list rename, table style fix, file name appended to downloads (#264)
* Single-column tables could overflow their maximum width * Suffix oplog entry data's file name when downloading * Renamed "view" link to "list" * Ensure all undesirable characters are removed from page name * Updated embedded frontend Zip archive * Wrote some entries into the changelog
Diffstat (limited to 'src/zenserver/frontend/html/util/widgets.js')
-rw-r--r--src/zenserver/frontend/html/util/widgets.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenserver/frontend/html/util/widgets.js b/src/zenserver/frontend/html/util/widgets.js
index 78998b7ff..d4f9875cd 100644
--- a/src/zenserver/frontend/html/util/widgets.js
+++ b/src/zenserver/frontend/html/util/widgets.js
@@ -64,7 +64,8 @@ export class Table extends Widget
var column_style;
if (flags & Table.Flag_FitLeft) column_style = "max-content";
- else if (flags & Table.Flag_BiasLeft) column_style = `minmax(${column_width * 2}%, 2fr)`;
+ else if (column_names.length == 1) column_style = "1fr";
+ else if (flags & Table.Flag_BiasLeft) column_style = `minmax(${column_width * 2}%, 1fr)`;
else column_style = `minmax(${column_width}%, 1fr)`;
for (var i = 1; i < column_names.length; ++i)
{