diff --git a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.js b/app/assets/javascripts/discourse/app/components/horizontal-overflow-nav.js
similarity index 85%
rename from app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.js
rename to app/assets/javascripts/discourse/app/components/horizontal-overflow-nav.js
index 1c013766bd1..79d0a065190 100644
--- a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.js
+++ b/app/assets/javascripts/discourse/app/components/horizontal-overflow-nav.js
@@ -4,7 +4,7 @@ import { bind } from "discourse-common/utils/decorators";
import { inject as service } from "@ember/service";
import { tracked } from "@glimmer/tracking";
-export default class UserNavPreferencesNav extends Component {
+export default class HorizontalOverflowNav extends Component {
@service site;
@tracked hasScroll;
@tracked hideRightScroll = false;
@@ -13,9 +13,14 @@ export default class UserNavPreferencesNav extends Component {
@bind
scrollToActive() {
- document
- .querySelector(".user-navigation-secondary a.active")
- .scrollIntoView({ inline: "center" });
+ const activeElement = document.querySelector(
+ ".user-navigation-secondary a.active"
+ );
+
+ activeElement?.scrollIntoView({
+ block: "nearest",
+ inline: "center",
+ });
}
@bind
@@ -60,7 +65,7 @@ export default class UserNavPreferencesNav extends Component {
@action
horizScroll(element) {
- let scrollSpeed = 50;
+ let scrollSpeed = 100;
let siblingTarget = element.target.previousElementSibling;
if (element.target.dataset.direction === "left") {
@@ -72,8 +77,6 @@ export default class UserNavPreferencesNav extends Component {
siblingTarget.scrollLeft += scrollSpeed;
}, 50);
- this.scrollTimer;
-
element.target.addEventListener("mouseup", this.stopScroll);
element.target.addEventListener("mouseleave", this.stopScroll);
}
diff --git a/app/assets/javascripts/discourse/app/components/user-nav/activity-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/activity-nav.hbs
new file mode 100644
index 00000000000..0e641e33c40
--- /dev/null
+++ b/app/assets/javascripts/discourse/app/components/user-nav/activity-nav.hbs
@@ -0,0 +1,47 @@
+
+ {{d-icon "stream"}}
+ {{i18n "user.filters.all"}}
+
+
+ {{d-icon "list-ul"}}
+ {{i18n "user_action_groups.4"}}
+
+
+ {{d-icon "reply"}}
+ {{i18n "user_action_groups.5"}}
+
+
+{{#if @user.showRead}}
+
+ {{d-icon "history"}}
+ {{i18n "user.read"}}
+
+{{/if}}
+
+{{#if @user.showDrafts}}
+
+ {{d-icon "pencil-alt"}}
+ {{@draftLabel}}
+
+{{/if}}
+
+{{#if (gt @model.pending_posts_count 0)}}
+
+ {{d-icon "clock"}}
+ {{@pendingLabel}}
+
+{{/if}}
+
+
+ {{d-icon "heart"}}
+ {{i18n "user_action_groups.1"}}
+
+
+{{#if @user.showBookmarks}}
+
+ {{d-icon "bookmark"}}
+ {{i18n "user_action_groups.3"}}
+
+{{/if}}
+
+
diff --git a/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs
index d88d8089b23..565e6c336c9 100644
--- a/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs
+++ b/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs
@@ -7,7 +7,7 @@
{{/if}}
-
diff --git a/app/assets/javascripts/discourse/app/components/user-nav/notifications-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/notifications-nav.hbs
new file mode 100644
index 00000000000..167f727cf75
--- /dev/null
+++ b/app/assets/javascripts/discourse/app/components/user-nav/notifications-nav.hbs
@@ -0,0 +1,38 @@
+
+
+ {{d-icon "bell"}}
+ {{i18n "user.filters.all"}}
+
+
+
+
+
+ {{d-icon "reply"}}
+ {{i18n "user_action_groups.6"}}
+
+
+
+
+
+ {{d-icon "heart"}}
+ {{i18n "user_action_groups.2"}}
+
+
+
+{{#if this.siteSettings.enable_mentions}}
+
+
+ {{d-icon "at"}}
+ {{i18n "user_action_groups.7"}}
+
+
+{{/if}}
+
+
+
+ {{d-icon "pencil-alt"}}
+ {{i18n "user_action_groups.11"}}
+
+
+
+
diff --git a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs
index a7fdca93e40..29e1c35c5d1 100644
--- a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs
+++ b/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs
@@ -1,106 +1,74 @@
-{{!-- template-lint-disable no-down-event-binding --}}
-
-
+
+
+ {{d-icon "user"}}
+ {{i18n "user.preferences_nav.account"}}
+
+
+
+
+ {{d-icon "lock"}}
+ {{i18n "user.preferences_nav.security"}}
+
+
+
+
+ {{d-icon "user"}}
+ {{i18n "user.preferences_nav.profile"}}
+
+
+
+
+ {{d-icon "envelope"}}
+ {{i18n "user.preferences_nav.emails"}}
+
+
+
+
+ {{d-icon "bell"}}
+ {{i18n "user.preferences_nav.notifications"}}
+
+
+{{#if @model.can_change_tracking_preferences}}
+
+
+ {{d-icon "folder"}}
+ {{i18n "user.preferences_nav.categories"}}
+
+
+{{/if}}
+
+
+ {{d-icon "users"}}
+ {{i18n "user.preferences_nav.users"}}
+
+
+{{#if (and @model.can_change_tracking_preferences @siteSettings.tagging_enabled)}}
+
+
+ {{d-icon "tag"}}
+ {{i18n "user.preferences_nav.tags"}}
+
+
+{{/if}}
+
+
+ {{d-icon "desktop"}}
+ {{i18n "user.preferences_nav.interface"}}
+
+
+{{#if @siteSettings.enable_experimental_sidebar_hamburger}}
+
+{{/if}}
+
+
+
+ {{d-icon "mobile-alt"}}
+ {{i18n "user.preferences_nav.apps"}}
+
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/horizontal-overflow-nav.hbs b/app/assets/javascripts/discourse/app/templates/components/horizontal-overflow-nav.hbs
new file mode 100644
index 00000000000..d726eb8eefc
--- /dev/null
+++ b/app/assets/javascripts/discourse/app/templates/components/horizontal-overflow-nav.hbs
@@ -0,0 +1,33 @@
+{{!-- template-lint-disable no-down-event-binding --}}
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/preferences.hbs b/app/assets/javascripts/discourse/app/templates/preferences.hbs
index acd0dd7e4b4..b2aa84d5020 100644
--- a/app/assets/javascripts/discourse/app/templates/preferences.hbs
+++ b/app/assets/javascripts/discourse/app/templates/preferences.hbs
@@ -1,12 +1,14 @@
{{#if this.currentUser.redesigned_user_page_nav_enabled}}
-
-
+
+
+
+
+
{{else}}
diff --git a/app/assets/javascripts/discourse/app/templates/user-invited.hbs b/app/assets/javascripts/discourse/app/templates/user-invited.hbs
index d634e12bf92..6824427a306 100644
--- a/app/assets/javascripts/discourse/app/templates/user-invited.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user-invited.hbs
@@ -3,11 +3,11 @@
{{else}}
diff --git a/app/assets/javascripts/discourse/app/templates/user/activity.hbs b/app/assets/javascripts/discourse/app/templates/user/activity.hbs
index 51975ad67bc..f75cd0c2d04 100644
--- a/app/assets/javascripts/discourse/app/templates/user/activity.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/activity.hbs
@@ -2,56 +2,17 @@
-
-
- {{d-icon "stream"}}
- {{i18n "user.filters.all"}}
-
-
- {{d-icon "list-ul"}}
- {{i18n "user_action_groups.4"}}
-
-
- {{d-icon "reply"}}
- {{i18n "user_action_groups.5"}}
-
-
- {{#if this.user.showRead}}
-
- {{d-icon "history"}}
- {{i18n "user.read"}}
-
- {{/if}}
-
- {{#if this.user.showDrafts}}
-
- {{d-icon "pencil-alt"}}
- {{this.draftLabel}}
-
- {{/if}}
-
- {{#if (gt this.model.pending_posts_count 0)}}
-
- {{d-icon "clock"}}
- {{this.pendingLabel}}
-
- {{/if}}
-
-
- {{d-icon "heart"}}
- {{i18n "user_action_groups.1"}}
-
-
- {{#if this.user.showBookmarks}}
-
- {{d-icon "bookmark"}}
- {{i18n "user_action_groups.3"}}
-
- {{/if}}
-
-
-
+
+
+
+
{{else}}