Update files

This commit is contained in:
Mohamed Boudra
2026-02-11 12:01:45 +07:00
parent 29855e07e9
commit d904a72dfb

View File

@@ -239,6 +239,7 @@ function SidebarAgentRow({
const showArchive = canArchive &&
shortcutNumber === null &&
(isHovered || isArchiveHovered || isArchiveConfirmVisible);
const reserveArchiveSlot = canArchive && shortcutNumber === null && !activeBranchLabel;
return (
<Pressable
@@ -336,6 +337,8 @@ function SidebarAgentRow({
{activeBranchLabel}
</Text>
</View>
) : reserveArchiveSlot ? (
<View style={[styles.branchBadge, styles.branchBadgePlaceholder]} />
) : null}
</View>
</View>
@@ -732,6 +735,10 @@ const styles = StyleSheet.create((theme) => ({
color: theme.colors.foregroundMuted,
lineHeight: 12,
},
branchBadgePlaceholder: {
opacity: 0,
borderColor: "transparent",
},
archiveConfirmBadge: {
minWidth: 76,
maxWidth: 9999,