diff --git a/components/PromptPanel.tsx b/components/PromptPanel.tsx index 3d9deda..849dc9e 100644 --- a/components/PromptPanel.tsx +++ b/components/PromptPanel.tsx @@ -123,7 +123,16 @@ export default function PromptPanel({ return promptEntryClassNames_6_1[index]; } default: - console.log("UNHANDLED playingState: " + playingState) + // These states are reached if alpha is greater than 1 but the new inference is not ready + if (appState != AppState.TRANSITION) { + return promptEntryClassNames_5_0[index]; + } + else if (playingState == PlayingState.SAME_PROMPT) { + return promptEntryClassNames_5_1[index]; + } + else { + return promptEntryClassNames_6_1[index]; + } } } @@ -131,7 +140,7 @@ export default function PromptPanel({ <>
-
+
{getDisplayPrompts().map((prompt, index) => ( 768 && window.innerWidth < 1068 ? window.innerWidth / imageScaler : 5; - const spectrogramBoxScale = window.innerWidth > 768 && window.innerWidth < 1068 ? window.innerWidth / boxScaler : 5.5; + const spectrogramImageScale = window.innerWidth > 767 && window.innerWidth < 1300 ? window.innerWidth / imageScaler : 5; + const spectrogramBoxScale = window.innerWidth > 767 && window.innerWidth < 1300 ? window.innerWidth / boxScaler : 5.5; return (