mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
UX: Put the HR in the correct place
This commit is contained in:
parent
8f21c96ea5
commit
3ed9cbc040
|
@ -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')
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user