From ced45ec71e91c828f3d26d7a625f6071bfec9bf9 Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Mon, 16 Feb 2026 17:21:02 +0100 Subject: [PATCH] UX: minor tweaks to table columns (#37845) https://meta.discourse.org/t/invisible-button-text-layout-misalignment-on-horizon-theme/396180 This area will be reworked more extensively soon, so this commit is just a small bandaid to improve it in the meantime. --- .../stylesheets/admin/admin_report_table.scss | 15 ++++++++++++++- .../components/admin-report-table-header.gjs | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/admin/admin_report_table.scss b/app/assets/stylesheets/admin/admin_report_table.scss index b48bc850b7f..42fd21541ac 100644 --- a/app/assets/stylesheets/admin/admin_report_table.scss +++ b/app/assets/stylesheets/admin/admin_report_table.scss @@ -9,7 +9,6 @@ .table .admin-report-table-cell:last-child, .table .admin-report-table-header:last-child { - width: 80%; text-align: right; } } @@ -102,6 +101,10 @@ .admin-report-table-header.topic_title { width: 80%; } + + .admin-report-table-cell.number { + width: 6ch; + } } .admin-report.trending-search { @@ -116,6 +119,16 @@ .admin-report-table-cell.term { @include ellipsis; } + + .admin-report-table-cell.percent { + width: 5ch; + text-align: right; + } + + .admin-report-table-cell.number.searches { + width: 6ch; + text-align: right; + } } .admin-report.moderators-activity { diff --git a/frontend/discourse/admin/components/admin-report-table-header.gjs b/frontend/discourse/admin/components/admin-report-table-header.gjs index 27849ec732c..f4386a542b8 100644 --- a/frontend/discourse/admin/components/admin-report-table-header.gjs +++ b/frontend/discourse/admin/components/admin-report-table-header.gjs @@ -49,7 +49,7 @@ export default class AdminReportTableHeader extends Component { @icon={{this.sortIcon}} @translatedLabel={{unless @label.htmlTitle @label.title}} @translatedTitle={{this.sortButtonTitle}} - class="btn-primary btn-transparent sort-btn" + class="btn-transparent --primary sort-btn" > {{#if @label.htmlTitle}} {{htmlSafe @label.htmlTitle}}