mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 12:14:36 +08:00
UX: Put the HR in the correct place
This commit is contained in:
@ -131,6 +131,10 @@ export default createWidget('user-menu', {
|
||||
this.attach('user-notifications', { path })
|
||||
];
|
||||
|
||||
if (this.settings.showLogoutButton || this.state.hasUnread) {
|
||||
result.push(h('hr.bottom-area'));
|
||||
}
|
||||
|
||||
if (this.settings.showLogoutButton) {
|
||||
result.push(
|
||||
h('div.logout-link', [
|
||||
|
@ -86,8 +86,7 @@ export default createWidget('user-notifications', {
|
||||
icon: 'chevron-down',
|
||||
action: 'showAllNotifications',
|
||||
className: 'btn'
|
||||
})),
|
||||
h('hr')
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user