From 48b31f7dec0fb1eeba731323ce9484a080cc14bf Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 27 Apr 2025 21:32:52 -0600 Subject: [PATCH] Update CSS and templates --- public/styles/Apps/StatsViewer.css | 13 ++++++++- .../Apps/StatsViewer/dataFilters.hbs | 19 +++++++++---- .../Apps/StatsViewer/dataOverview.hbs | 3 -- .../Apps/StatsViewer/tableSelect.hbs | 28 +++++++++++++------ 4 files changed, 45 insertions(+), 18 deletions(-) delete mode 100644 public/templates/Apps/StatsViewer/dataOverview.hbs diff --git a/public/styles/Apps/StatsViewer.css b/public/styles/Apps/StatsViewer.css index 02a364e..8bdf452 100644 --- a/public/styles/Apps/StatsViewer.css +++ b/public/styles/Apps/StatsViewer.css @@ -1,5 +1,4 @@ .stat-tracker.StatsViewer { - .window-content { gap: 1rem; } @@ -8,11 +7,17 @@ display: flex; flex-direction: row; gap: 1rem; + + > div { + width: 100%; + } } + [data-application-part="dataFilters"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; + align-items: end; } [data-application-part="graph"] { @@ -20,4 +25,10 @@ justify-items: center; position: relative; } + + .control-group { + display: flex; + flex-direction: column; + gap: 2px; + } } diff --git a/public/templates/Apps/StatsViewer/dataFilters.hbs b/public/templates/Apps/StatsViewer/dataFilters.hbs index 40aeac6..bbcc52f 100644 --- a/public/templates/Apps/StatsViewer/dataFilters.hbs +++ b/public/templates/Apps/StatsViewer/dataFilters.hbs @@ -1,12 +1,19 @@
-
- Extra Controls +
+ +
- {{!-- This currently doesn't support any placeholders :( --}} - - {{ st-options selectedUsers users }} - +
diff --git a/public/templates/Apps/StatsViewer/dataOverview.hbs b/public/templates/Apps/StatsViewer/dataOverview.hbs deleted file mode 100644 index ff2555b..0000000 --- a/public/templates/Apps/StatsViewer/dataOverview.hbs +++ /dev/null @@ -1,3 +0,0 @@ -
- Table Overview -
diff --git a/public/templates/Apps/StatsViewer/tableSelect.hbs b/public/templates/Apps/StatsViewer/tableSelect.hbs index 4f9501a..5cb8192 100644 --- a/public/templates/Apps/StatsViewer/tableSelect.hbs +++ b/public/templates/Apps/StatsViewer/tableSelect.hbs @@ -1,14 +1,26 @@
- - {{#if subtables}} +
+ +
+ {{#if subtables}} +
+ + +
{{/if}}