UX: Move "watching topic" user-tip to the other button (#29323)

Moves the user-tip from the topic-timeline notifications button to the one at the bottom of the topic page.

Three reasons:
1. new users are more likely to use the button that has the full text (and description) rather than the icon-only one
2. we hide the timeline button when scrolled all the way to the bottom of the page, and then the tip doesn't seems to be attached to anything
3. we might be removing the timeline button altogether in the near future
This commit is contained in:
Jarek Radosz 2024-10-22 18:54:18 +02:00 committed by GitHub
parent f45559a8b3
commit b2167f7651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -91,17 +91,20 @@
<PinnedButton @pinned={{this.topic.pinned}} @topic={{this.topic}} />
{{#if this.showNotificationsButton}}
<TopicNotificationsButton
@topic={{this.topic}}
class="notifications-button-footer"
/>
{{#if this.showNotificationUserTip}}
<UserTip
@id="topic_notification_levels"
@triggerSelector=".notifications-button"
@triggerSelector=".notifications-button-footer details"
@titleText={{i18n "user_tips.topic_notification_levels.title"}}
@contentText={{i18n "user_tips.topic_notification_levels.content"}}
@priority={{800}}
/>
{{/if}}
<TopicNotificationsButton @topic={{this.topic}} />
{{/if}}
<PluginOutlet

View File

@ -113,7 +113,7 @@ export default class TopicNotificationsButton extends Component {
}
<template>
<div class="topic-notifications-button">
<div class="topic-notifications-button" ...attributes>
{{#if this.appendReason}}
<p class="reason">
<TopicNotificationsOptions