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