Skip to content

Commit 4dc0d47

Browse files
committed
Fix header spacing in issue-write and pr-write UIs
Add proper spacing between icon, title text, and repo name in the header bar for both issue-write and create-pull-request forms.
1 parent 24174b9 commit 4dc0d47

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ui/src/apps/issue-write/App.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,13 @@ function CreateIssueApp() {
241241
borderBottomStyle="solid"
242242
borderBottomColor="border.default"
243243
>
244-
<IssueOpenedIcon size={16} />
245-
<Text sx={{ fontWeight: "semibold" }}>
244+
<Box sx={{ color: "fg.default", flexShrink: 0, display: "flex" }}>
245+
<IssueOpenedIcon size={16} />
246+
</Box>
247+
<Text sx={{ fontWeight: "semibold", whiteSpace: "nowrap" }}>
246248
{isUpdateMode ? `Update issue #${issueNumber}` : "New issue"}
247249
</Text>
248-
<Text sx={{ color: "fg.muted", fontSize: 0 }}>
250+
<Text sx={{ color: "fg.muted", fontSize: 0, ml: 1 }}>
249251
{owner}/{repo}
250252
</Text>
251253
</Box>

ui/src/apps/pr-write/App.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ function CreatePRApp() {
231231
borderBottomStyle="solid"
232232
borderBottomColor="border.default"
233233
>
234-
<GitPullRequestIcon size={16} />
235-
<Text sx={{ fontWeight: "semibold" }}>New pull request</Text>
236-
<Text sx={{ color: "fg.muted", fontSize: 0 }}>
234+
<Box sx={{ color: "fg.default", flexShrink: 0, display: "flex" }}>
235+
<GitPullRequestIcon size={16} />
236+
</Box>
237+
<Text sx={{ fontWeight: "semibold", whiteSpace: "nowrap" }}>New pull request</Text>
238+
<Text sx={{ color: "fg.muted", fontSize: 0, ml: 1 }}>
237239
{owner}/{repo}
238240
</Text>
239241
{head && base && (

0 commit comments

Comments
 (0)