Skip to content

Commit 7a0ba49

Browse files
authored
fix: Prevent text wrapping in diff stats and mode/branch row (#1524)
1 parent 77fd1d7 commit 7a0ba49

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

apps/code/src/renderer/features/message-editor/components/DiffStatsIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function DiffStatsIndicator({
3232
}
3333

3434
return (
35-
<Flex align="center" gap="2">
35+
<Flex align="center" gap="2" style={{ whiteSpace: "nowrap" }}>
3636
<Text
3737
size="1"
3838
style={{

apps/code/src/renderer/features/message-editor/components/MessageEditor.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ function ModeAndBranchRow({
6464
}
6565

6666
return (
67-
<Flex align="center" justify="between" style={{ overflow: "hidden" }}>
67+
<Flex
68+
align="center"
69+
justify="between"
70+
gap="3"
71+
style={{ overflow: "hidden" }}
72+
>
6873
<Flex align="center" gap="2" flexShrink="0">
6974
{isBashMode ? (
7075
<Text
@@ -89,7 +94,12 @@ function ModeAndBranchRow({
8994
</>
9095
)}
9196
</Flex>
92-
<Flex align="center" gap="2" style={{ minWidth: 0, overflow: "hidden" }}>
97+
<Flex
98+
align="center"
99+
gap="2"
100+
wrap="nowrap"
101+
style={{ minWidth: 0, overflow: "hidden" }}
102+
>
93103
<DiffStatsIndicator
94104
repoPath={repoPath}
95105
overrideStats={cloudDiffStats}

0 commit comments

Comments
 (0)