@@ -115,48 +115,47 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
115
115
</ div >
116
116
117
117
< div
118
- className = "flex-1 overflow-hidden"
118
+ className = "flex-1 whitespace-nowrap overflow-hidden overflow-ellipsis "
119
119
onClick = { ( ) => openNotification ( ) }
120
120
onKeyDown = { ( ) => openNotification ( ) }
121
121
>
122
122
< div
123
- className = "mb-1 text-sm whitespace-nowrap overflow-ellipsis overflow-hidden cursor-pointer"
123
+ className = "mb-1 text-sm whitespace-nowrap cursor-pointer"
124
124
role = "main"
125
125
title = { notification . subject . title }
126
126
>
127
127
{ notification . subject . title }
128
128
</ div >
129
129
130
- < div className = "text-xs text-capitalize whitespace-nowrap overflow-ellipsis overflow-hidden" >
131
- < span className = "flex items-center" >
132
- < span title = { updatedLabel } className = "flex" >
133
- { notification . subject . user ? (
134
- < span
135
- title = "View User Profile"
136
- onClick = { openUserProfile }
137
- onKeyDown = { openUserProfile }
138
- >
139
- < img
140
- className = "rounded-full w-4 h-4 cursor-pointer"
141
- src = { notification . subject . user . avatar_url }
142
- title = { notification . subject . user . login }
143
- alt = { `${ notification . subject . user . login } 's avatar` }
144
- />
145
- </ span >
146
- ) : (
147
- < span >
148
- < FeedPersonIcon
149
- size = { 16 }
150
- className = "text-gray-500 dark:text-gray-300"
151
- />
152
- </ span >
153
- ) }
154
- < span className = "ml-1" title = { reason . description } >
155
- { reason . title }
130
+ < div className = "text-xs text-capitalize" >
131
+ < span title = { updatedLabel } className = "flex items-center gap-1" >
132
+ { notification . subject . user ? (
133
+ < span
134
+ title = "View User Profile"
135
+ onClick = { openUserProfile }
136
+ onKeyDown = { openUserProfile }
137
+ className = "flex-shrink-0"
138
+ >
139
+ < img
140
+ className = "rounded-full w-4 h-4 object-cover cursor-pointer"
141
+ src = { notification . subject . user . avatar_url }
142
+ title = { notification . subject . user . login }
143
+ alt = { `${ notification . subject . user . login } 's avatar` }
144
+ />
145
+ </ span >
146
+ ) : (
147
+ < span >
148
+ < FeedPersonIcon
149
+ size = { 16 }
150
+ className = "text-gray-500 dark:text-gray-300"
151
+ />
156
152
</ span >
157
- < span className = "ml-1" > { updatedAt } </ span >
153
+ ) }
154
+ < span title = { reason . description } > { reason . title } </ span >
155
+ < span > { updatedAt } </ span >
156
+ < span className = "hover:overflow-auto" >
158
157
{ notification . subject ?. linkedIssues ?. length > 0 && (
159
- < span className = "ml-1" title = { linkedIssuesPillDescription } >
158
+ < span title = { linkedIssuesPillDescription } >
160
159
< button type = "button" className = { Constants . PILL_CLASS_NAME } >
161
160
< IssueClosedIcon
162
161
size = { 12 }
@@ -175,11 +174,7 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
175
174
}
176
175
177
176
return (
178
- < span
179
- key = { review . state }
180
- title = { icon . description }
181
- className = "ml-1"
182
- >
177
+ < span key = { review . state } title = { icon . description } >
183
178
< button
184
179
type = "button"
185
180
className = { Constants . PILL_CLASS_NAME }
@@ -196,7 +191,7 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
196
191
} )
197
192
: null }
198
193
{ notification . subject ?. comments > 0 && (
199
- < span className = "ml-1" title = { commentsPillDescription } >
194
+ < span title = { commentsPillDescription } >
200
195
< button type = "button" className = { Constants . PILL_CLASS_NAME } >
201
196
< CommentIcon
202
197
size = { 12 }
@@ -208,7 +203,7 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
208
203
</ span >
209
204
) }
210
205
{ notification . subject ?. labels ?. length > 0 && (
211
- < span className = "ml-1" title = { labelsPillDescription } >
206
+ < span title = { labelsPillDescription } >
212
207
< button type = "button" className = { Constants . PILL_CLASS_NAME } >
213
208
< TagIcon
214
209
size = { 12 }
0 commit comments