Skip to content

Commit 2b0d8cc

Browse files
committed
fix formatting of button labels
1 parent 6d0eda6 commit 2b0d8cc

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

ui/src/apps/get-me/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function UserCard({ user }: { user: UserData }) {
115115
</Box>
116116

117117
{/* Stats */}
118-
<Box display="flex" gap={4} mt={3} pt={3} borderTopWidth={1} borderTopStyle="solid" borderTopColor="border.default">
118+
<Box display="flex" justifyContent="space-around" mt={3} pt={3} borderTopWidth={1} borderTopStyle="solid" borderTopColor="border.default">
119119
<Box sx={{ textAlign: "center" }}>
120120
<Text sx={{ fontWeight: "bold", fontSize: 2, display: "block" }}>
121121
<RepoIcon size={16} /> {d.public_repos ?? 0}

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Link,
1010
Spinner,
1111
FormControl,
12-
Token,
12+
CounterLabel,
1313
ActionMenu,
1414
ActionList,
1515
Label,
@@ -107,14 +107,13 @@ function SuccessView({
107107
<Box
108108
display="flex"
109109
alignItems="center"
110-
gap={3}
111110
mb={3}
112111
pb={3}
113112
borderBottomWidth={1}
114113
borderBottomStyle="solid"
115114
borderBottomColor="border.default"
116115
>
117-
<Box sx={{ color: "success.fg" }}>
116+
<Box sx={{ color: "success.fg", flexShrink: 0, mr: 2 }}>
118117
<CheckCircleIcon size={16} />
119118
</Box>
120119
<Text sx={{ fontWeight: "semibold" }}>
@@ -870,13 +869,13 @@ function CreateIssueApp() {
870869
</Box>
871870

872871
{/* Metadata section */}
873-
<Box display="flex" gap={2} mb={3} sx={{ flexWrap: "nowrap", "& > *": { flexShrink: 0 } }}>
872+
<Box display="flex" gap={1} mb={3} sx={{ flexWrap: "nowrap", overflow: "hidden" }}>
874873
{/* Labels dropdown */}
875874
<ActionMenu>
876875
<ActionMenu.Button size="small" leadingVisual={TagIcon}>
877-
Labels{" "}
876+
Labels
878877
{selectedLabels.length > 0 && (
879-
<Token text={String(selectedLabels.length)} size="small" />
878+
<CounterLabel sx={{ ml: 1 }}>{selectedLabels.length}</CounterLabel>
880879
)}
881880
</ActionMenu.Button>
882881
<ActionMenu.Overlay width="medium">
@@ -930,9 +929,9 @@ function CreateIssueApp() {
930929
{/* Assignees dropdown */}
931930
<ActionMenu>
932931
<ActionMenu.Button size="small" leadingVisual={PersonIcon}>
933-
Assignees{" "}
932+
Assignees
934933
{selectedAssignees.length > 0 && (
935-
<Token text={String(selectedAssignees.length)} size="small" />
934+
<CounterLabel sx={{ ml: 1 }}>{selectedAssignees.length}</CounterLabel>
936935
)}
937936
</ActionMenu.Button>
938937
<ActionMenu.Overlay width="medium">

0 commit comments

Comments
 (0)