Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix user menu not showing in responsive view on the UI. Closes #2793.

Kailash Nadh5f935435a68d
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index b03b87de..e9423880 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -13,7 +13,7 @@
<navigation v-if="isMobile" :is-mobile="isMobile" :active-item="activeItem" :active-group="activeGroup"
@toggleGroup="toggleGroup" @doLogout="doLogout" />
- <b-navbar-dropdown class="user" tag="div" right v-else>
+ <b-navbar-dropdown class="user" tag="div" right>
<template v-if="profile.username" #label>
<span class="user-avatar">
<img v-if="profile.avatar" :src="profile.avatar" alt="" />
diff --git a/frontend/src/assets/style.scss b/frontend/src/assets/style.scss
index 75ac58c7..5cc538ba 100644
--- a/frontend/src/assets/style.scss
+++ b/frontend/src/assets/style.scss
@@ -150,6 +150,10 @@ section {
}
}
+.navbar-dropdown {
+ font-size: 1rem;
+}
+
.user-avatar {
img {
display: inline-block;
@@ -1340,6 +1344,16 @@ th.role-toggle-select a {
}
}
+@media screen and (max-width: 1024px) {
+ .navbar-item.user {
+ border-top: 1px solid #ddd;
+ margin-top: 15px;
+ }
+ .navbar-item.user .navbar-link {
+ padding: 15px;
+ }
+}
+
@media screen and (max-width: 850px) {
.page-header .buttons {
display: block;
diff --git a/frontend/src/components/Navigation.vue b/frontend/src/components/Navigation.vue
index 340769a8..4d7c9a1c 100644
--- a/frontend/src/components/Navigation.vue
+++ b/frontend/src/components/Navigation.vue
@@ -63,8 +63,6 @@
<b-menu-item v-if="$can('settings:get')" :to="{ name: 'logs' }" tag="router-link" :active="activeItem.logs"
data-cy="logs" icon="format-list-bulleted-square" :label="$t('menu.logs')" />
</b-menu-item><!-- settings -->
-
- <b-menu-item v-if="isMobile" icon="logout-variant" :label="$t('users.logout')" @click.prevent="doLogout" />
</b-menu-list>
</template>