Skip to content

A platform for community discussion. Free, open, simple.

UX: Keep site traffic counts visible in site traffic explorer card (#42604)

Alan Guo Xiang Tan88cf7850bfa4
diff --git a/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss b/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
index fc0046edc85..d93972f083a 100644
--- a/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
+++ b/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
@@ -240,10 +240,10 @@
color: var(--primary);
font: inherit;
text-align: start;
+ }
- > span:not(.site-traffic-explorer__row-count) {
- @include ellipsis;
- }
+ &__row-label {
+ @include ellipsis;
}
&__row-count {
diff --git a/frontend/discourse/admin/components/site-traffic-explorer-breakdown-card.gjs b/frontend/discourse/admin/components/site-traffic-explorer-breakdown-card.gjs
index 289818ac52c..41ccf765311 100644
--- a/frontend/discourse/admin/components/site-traffic-explorer-breakdown-card.gjs
+++ b/frontend/discourse/admin/components/site-traffic-explorer-breakdown-card.gjs
@@ -212,7 +212,7 @@ export default class SiteTrafficExplorerBreakdownCard extends Component {
data-test-site-traffic-row
{{on "click" (fn this.filter row)}}
>
- <span>
+ <span class="site-traffic-explorer__row-label">
<SiteTrafficExplorerDimensionLabel
@dimension={{this.activeTab.dimension}}
@row={{row}}