mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
style: remove REMOTE label, show host in accent color with repo name
This commit is contained in:
1 parent
adf6bd2921
commit
80bca441ed
1 file changed
+4
-5
+4
-5
@@ -8,15 +8,14 @@ const tui = async (api: TuiPluginApi): Promise<void> => {
|
||||
const remote = readRemoteContext(process.env)
|
||||
if (!remote) return
|
||||
|
||||
const label = remote.repoName ? `${remote.managerHost} · ${remote.repoName}` : remote.managerHost
|
||||
const indicator = (ctx: TuiSlotContext) => {
|
||||
const theme = ctx.theme.current
|
||||
return (
|
||||
<box flexDirection="row" flexShrink={0} gap={1}>
|
||||
<text fg={theme.accent}>
|
||||
<b>REMOTE</b>
|
||||
</text>
|
||||
<text fg={theme.textMuted}>{label}</text>
|
||||
<text fg={theme.accent}>{remote.managerHost}</text>
|
||||
{remote.repoName && (
|
||||
<text fg={theme.textMuted}> · {remote.repoName}</text>
|
||||
)}
|
||||
</box>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user