@@ -93,14 +93,6 @@ export const AccountNotifications: FC<IAccountNotifications> = (
93
93
onClick = { toggleAccountNotifications }
94
94
>
95
95
< div className = "flex" >
96
- < div className = "mr-2 flex items-center justify-center" >
97
- < AvatarIcon
98
- title = { account . user . login }
99
- url = { account . user . avatar }
100
- size = { Size . SMALL }
101
- defaultIcon = { FeedPersonIcon }
102
- />
103
- </ div >
104
96
< button
105
97
type = "button"
106
98
title = "Open Profile"
@@ -110,7 +102,15 @@ export const AccountNotifications: FC<IAccountNotifications> = (
110
102
openAccountProfile ( account ) ;
111
103
} }
112
104
>
113
- @{ account . user . login }
105
+ < div className = "flex" >
106
+ < AvatarIcon
107
+ title = { account . user . login }
108
+ url = { account . user . avatar }
109
+ size = { Size . SMALL }
110
+ defaultIcon = { FeedPersonIcon }
111
+ />
112
+ < span className = "ml-2" > @{ account . user . login } </ span >
113
+ </ div >
114
114
</ button >
115
115
</ div >
116
116
< HoverGroup >
@@ -119,13 +119,21 @@ export const AccountNotifications: FC<IAccountNotifications> = (
119
119
title = "My Issues"
120
120
icon = { IssueOpenedIcon }
121
121
size = { Size . SMALL }
122
- onClick = { ( ) => openGitHubIssues ( account . hostname ) }
122
+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
123
+ // Don't trigger onClick of parent element.
124
+ event . stopPropagation ( ) ;
125
+ openGitHubIssues ( account . hostname ) ;
126
+ } }
123
127
/>
124
128
< InteractionButton
125
129
title = "My Pull Requests"
126
130
icon = { GitPullRequestIcon }
127
131
size = { Size . SMALL }
128
- onClick = { ( ) => openGitHubPulls ( account . hostname ) }
132
+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
133
+ // Don't trigger onClick of parent element.
134
+ event . stopPropagation ( ) ;
135
+ openGitHubPulls ( account . hostname ) ;
136
+ } }
129
137
/>
130
138
< InteractionButton
131
139
title = { toggleAccountNotificationsLabel }
0 commit comments