Split any YouTube song into stems
TypeScript
fix: open key popover leftward and show ? when detection fails
David Navia36ad57f542bf
diff --git a/src/renderer/src/components/KeyControl.tsx b/src/renderer/src/components/KeyControl.tsxindex aebe4b8..092122c 100644--- a/src/renderer/src/components/KeyControl.tsx+++ b/src/renderer/src/components/KeyControl.tsx@@ -72,7 +72,7 @@ export function KeyControl({ songKey, onOverride, children }: Props): React.Reac<divrole="dialog"aria-label="Original key"- className="no-drag absolute bottom-full left-0 mb-2 z-50 w-64 p-2 rounded-xl bg-[#16151d] border border-white/[0.08] shadow-2xl"+ className="no-drag absolute bottom-full right-0 mb-2 z-50 w-64 p-2 rounded-xl bg-[#16151d] border border-white/[0.08] shadow-2xl">{songKey?.detected && (<buttondiff --git a/src/renderer/src/components/Player.tsx b/src/renderer/src/components/Player.tsxindex 0e59daa..1fed00c 100644--- a/src/renderer/src/components/Player.tsx+++ b/src/renderer/src/components/Player.tsx@@ -135,7 +135,8 @@ export function Player({ song, settings }: Props): React.ReactElement {if (!cancelled) setSongKey(k)}).catch(() => {- // detection is best-effort; the label falls back to '…'+ // detection is best-effort: show '?' rather than analysing forever+ if (!cancelled) setSongKey({ detected: null })})}const flushPan = (): void => {