Skip to content

Commit 80bca44

Browse files
style: remove REMOTE label, show host in accent color with repo name
1 parent adf6bd2 commit 80bca44

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

ocm-cli/src/tui.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ const tui = async (api: TuiPluginApi): Promise<void> => {
88
const remote = readRemoteContext(process.env)
99
if (!remote) return
1010

11-
const label = remote.repoName ? `${remote.managerHost} · ${remote.repoName}` : remote.managerHost
1211
const indicator = (ctx: TuiSlotContext) => {
1312
const theme = ctx.theme.current
1413
return (
1514
<box flexDirection="row" flexShrink={0} gap={1}>
16-
<text fg={theme.accent}>
17-
<b>REMOTE</b>
18-
</text>
19-
<text fg={theme.textMuted}>{label}</text>
15+
<text fg={theme.accent}>{remote.managerHost}</text>
16+
{remote.repoName && (
17+
<text fg={theme.textMuted}> · {remote.repoName}</text>
18+
)}
2019
</box>
2120
)
2221
}

0 commit comments

Comments
 (0)