Skip to content

Commit 80c0598

Browse files
committed
Moved the activity bell out of the mobile dropdown and into the top-right header (mobile only)
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
1 parent 2038757 commit 80c0598

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

app/assets/stylesheets/components/navigation.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
gap: 6px;
125125
}
126126

127+
.nav-mobile-bell {
128+
display: none;
129+
}
130+
127131
.nav-link-activity i {
128132
font-size: 1.05em;
129133
}
@@ -227,6 +231,11 @@
227231
display: none;
228232
}
229233

234+
.nav-mobile-bell {
235+
display: inline-flex;
236+
margin-left: auto;
237+
}
238+
230239
body.has-sidebar .nav-burger {
231240
display: inline-flex;
232241
}

app/views/layouts/application.html.slim

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,18 @@ html data-theme="light"
5858
- if user_signed_in?
5959
- if current_user&.person&.default_alias
6060
span.nav-user = current_user.person.default_alias.name
61-
- unread = activity_unread_count
62-
= link_to activities_path, class: "nav-link nav-link-activity", title: "Activity" do
63-
i.fa-regular.fa-bell
64-
- if unread.positive?
65-
span.nav-badge = unread
6661
= link_to "Settings", settings_root_path, class: "nav-link"
6762
= button_to "Sign out", session_path, method: :delete, class: "nav-link", form: { style: 'display:inline' }, data: { turbo: false }
6863
- else
6964
= link_to "Sign in", new_session_path, class: "nav-link"
7065
= link_to "Register", new_registration_path, class: "nav-link"
7166
span.tagline PostgreSQL Hackers Archive
67+
- if user_signed_in?
68+
- unread = activity_unread_count
69+
= link_to activities_path, class: "nav-link nav-link-activity nav-mobile-bell", title: "Activity" do
70+
i.fa-regular.fa-bell
71+
- if unread.positive?
72+
span.nav-badge = unread
7273
.nav-links
7374
= link_to "Topics", topics_path, class: "nav-link"
7475
- search_link = content_for?(:search_sidebar) ? "#search" : topics_path(anchor: "search")

0 commit comments

Comments
 (0)