Compare commits

...

1 Commits

Author SHA1 Message Date
Vogel 75e4b8eb99 fix(app): refine beta channel badge
Opencode-Session: ses_0e22a6e11ffe3aB3BmVLK4TQ7X
Opencode-Message: msg_f1dd85d480018fpawmUVWJV63c
Opencode-Agent: build
2026-07-01 09:22:28 -04:00
+8 -7
View File
@@ -713,13 +713,14 @@ function TitlebarUpdateIconButton(props: { state: TitlebarUpdatePillState }) {
}
function ChannelIndicator() {
const channel = import.meta.env.VITE_OPENCODE_CHANNEL
if (channel !== "beta" && channel !== "dev") return null
return (
<>
{["beta", "dev"].includes(import.meta.env.VITE_OPENCODE_CHANNEL) && (
<div class="bg-icon-interactive-base text-[#FFF] font-medium px-2 rounded-sm uppercase font-mono">
{import.meta.env.VITE_OPENCODE_CHANNEL.toUpperCase()}
</div>
)}
</>
<div
class={`text-[#FFF] font-medium px-2 rounded-sm uppercase font-mono ${channel === "beta" ? "bg-[#0488D1]" : "bg-icon-interactive-base"}`}
>
{channel === "beta" ? "β" : channel.toUpperCase()}
</div>
)
}