composer/settings: use ActionButton iconOnly send; replace deprecated navigator.platform with lib/platform (P1-9, P2-46)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:02:29 -04:00
1 parent b0b0cfa35b
commit 296c72eb3f
3 files changed
+26 -7

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
export function isMac(): boolean {
return window.agentCompany.platform === "darwin";
}
export function cmdOrCtrlLabel(): string {
return isMac() ? "Cmd" : "Ctrl";
}
export function cmdOrCtrlSymbol(): string {
return isMac() ? "⌘" : "Ctrl+";
}