Skip to content

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

UX: Fix notifications tracking buttons styling (#31592)

Jarek Radosz4ed7a88a9475
diff --git a/app/assets/javascripts/discourse/app/components/notifications-tracking.gjs b/app/assets/javascripts/discourse/app/components/notifications-tracking.gjs
index 233ce126f61..3d77cca409b 100644
--- a/app/assets/javascripts/discourse/app/components/notifications-tracking.gjs
+++ b/app/assets/javascripts/discourse/app/components/notifications-tracking.gjs
@@ -42,7 +42,13 @@ class NotificationsTrackingTrigger extends Component {
}
<template>
- <button class="btn btn-icon-text btn-default" ...attributes>
+ <button
+ class={{concatClass
+ "btn btn-default"
+ (if this.showFullTitle "btn-icon-text" "no-text")
+ }}
+ ...attributes
+ >
{{icon @selectedLevel.icon}}
{{#if this.showFullTitle}}
diff --git a/app/assets/stylesheets/common/components/notifications-tracking.scss b/app/assets/stylesheets/common/components/notifications-tracking.scss
index 870c8ac3819..46563b1e977 100644
--- a/app/assets/stylesheets/common/components/notifications-tracking.scss
+++ b/app/assets/stylesheets/common/components/notifications-tracking.scss
@@ -1,8 +1,3 @@
-.notifications-tracking-trigger-btn {
- display: flex;
- gap: 0.25em;
-}
-
.notifications-tracking-btn {
display: flex;
flex: 1 0 auto;