fix(mobile): thread list shows the pull request icon instead of # (#13742)
This commit is contained in:
1 parent
95030dc674
commit
75d63d64c5
1 file changed
+14
-16
@@ -1028,27 +1028,25 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
|
||||
)}
|
||||
{pr ? (
|
||||
<View className="flex-row items-center gap-1" accessibilityLabel={pr.accessibilityLabel}>
|
||||
{pr.kind === "stack" || pr.others > 0 ? (
|
||||
<SymbolView
|
||||
name={pr.kind === "stack" ? "square.3.layers.3d" : "arrow.triangle.pull"}
|
||||
size={12}
|
||||
tintColorClassName={
|
||||
pr.state === null || pr.isDraft
|
||||
? rowAppearance.mutedIconTintClassName
|
||||
: pr.state === "open"
|
||||
? "accent-adaptive-emerald-600-400"
|
||||
: pr.state === "closed"
|
||||
? "accent-adaptive-rose-600-400"
|
||||
: "accent-adaptive-violet-600-400"
|
||||
}
|
||||
/>
|
||||
) : null}
|
||||
<SymbolView
|
||||
name={pr.kind === "stack" ? "square.3.layers.3d" : "arrow.triangle.pull"}
|
||||
size={12}
|
||||
tintColorClassName={
|
||||
pr.state === null || pr.isDraft
|
||||
? rowAppearance.mutedIconTintClassName
|
||||
: pr.state === "open"
|
||||
? "accent-adaptive-emerald-600-400"
|
||||
: pr.state === "closed"
|
||||
? "accent-adaptive-rose-600-400"
|
||||
: "accent-adaptive-violet-600-400"
|
||||
}
|
||||
/>
|
||||
<Text
|
||||
accessibilityLabel={pr.accessibilityLabel}
|
||||
className={cn("text-xs", pr.textClassName)}
|
||||
style={{ fontFamily: MONO_FONT }}
|
||||
>
|
||||
{pr.kind === "stack" || pr.others > 0 ? pr.label : `#${pr.label}`}
|
||||
{pr.label}
|
||||
</Text>
|
||||
</View>
|
||||
) : null}
|
||||
|
||||
Reference in new issue
Block a user