File tree Expand file tree Collapse file tree
apps/web/src/components/pullRequest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,11 @@ function PullRequestRowImpl({
113113 { environmentLabel ? (
114114 < span className = "min-w-0 max-w-32 truncate" > { environmentLabel } </ span >
115115 ) : null }
116- < PullRequestActorLabel actor = { entry . author } className = "min-w-4 max-w-40" />
116+ < PullRequestActorLabel
117+ actor = { entry . author }
118+ className = "min-w-4 max-w-40"
119+ labelClassName = "sr-only @xs/pr-row-meta:not-sr-only @xs/pr-row-meta:truncate"
120+ />
117121 { /* Only a verdict somebody has actually given: "review required" is the absence of
118122 one, and saying so on every unreviewed row would say nothing. */ }
119123 { entry . reviewDecision === "approved" || entry . reviewDecision === "changes-requested" ? (
Original file line number Diff line number Diff line change @@ -339,17 +339,19 @@ export function PullRequestActorAvatar({
339339export function PullRequestActorLabel ( {
340340 actor,
341341 className,
342+ labelClassName,
342343 tooltip = true ,
343344} : {
344345 actor : PullRequestActor | null ;
345346 className ?: string ;
347+ labelClassName ?: string ;
346348 tooltip ?: boolean ;
347349} ) {
348350 const login = actor ?. login ?? "ghost" ;
349351 const label = (
350352 < >
351353 < PullRequestActorAvatar actor = { actor } />
352- < span className = "truncate" > { login } </ span >
354+ < span className = { cn ( "truncate" , labelClassName ) } > { login } </ span >
353355 </ >
354356 ) ;
355357 if ( ! tooltip ) {
You can’t perform that action at this time.
0 commit comments