Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Hide stack selector in video mode

Abi Raja49dfad74ad83
diff --git a/frontend/src/components/settings/GenerationSettings.tsx b/frontend/src/components/settings/GenerationSettings.tsx
index 654efec1..56df5ee1 100644
--- a/frontend/src/components/settings/GenerationSettings.tsx
+++ b/frontend/src/components/settings/GenerationSettings.tsx
@@ -1,5 +1,6 @@
import React from "react";
import { useAppStore } from "../../store/app-store";
+import { useProjectStore } from "../../store/project-store";
import { AppState, Settings } from "../../types";
import OutputSettingsSection from "./OutputSettingsSection";
import { Stack } from "../../lib/stacks";
@@ -14,6 +15,7 @@ export const GenerationSettings: React.FC<GenerationSettingsProps> = ({
setSettings,
}) => {
const { appState } = useAppStore();
+ const { inputMode } = useProjectStore();
function setStack(stack: Stack) {
setSettings((prev: Settings) => ({
@@ -25,6 +27,11 @@ export const GenerationSettings: React.FC<GenerationSettingsProps> = ({
const shouldDisableUpdates =
appState === AppState.CODING || appState === AppState.CODE_READY;
+ // Hide stack selector for video mode (only HTML + Tailwind is supported)
+ if (inputMode === "video") {
+ return null;
+ }
+
return (
<div className="flex flex-col gap-y-2">
<OutputSettingsSection