diff --git a/src/app/globals.css b/src/app/globals.css index b245970..22477ea 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -179,3 +179,55 @@ overflow-y: auto; overflow-x: hidden; } + +/* Compact properties cards */ +.properties-panel-scroll .max-w-sm { + max-width: 280px; + min-height: auto; +} + +.properties-panel-scroll .space-y-4 > * + * { + margin-top: 0.75rem; +} + +.properties-panel-scroll .space-y-2 > * + * { + margin-top: 0.375rem; +} + +/* Reduce card header and content height */ +.properties-panel-scroll .max-w-sm .pb-2 { + padding-bottom: 0.375rem; +} + +.properties-panel-scroll .max-w-sm .pt-3 { + padding-top: 0.5rem; +} + +.properties-panel-scroll .max-w-sm .px-3 { + padding-left: 0.75rem; + padding-right: 0.75rem; +} + +.properties-panel-scroll .max-w-sm .pb-3 { + padding-bottom: 0.5rem; +} + +/* Additional compact styling */ +.properties-panel-scroll .space-y-3 > * + * { + margin-top: 0.5rem; +} + +.properties-panel-scroll .space-y-1\.5 > * + * { + margin-top: 0.25rem; +} + +/* Reduce text size for more compact look */ +.properties-panel-scroll .text-sm { + font-size: 0.8rem; + line-height: 1.2; +} + +.properties-panel-scroll .text-xs { + font-size: 0.7rem; + line-height: 1.1; +} diff --git a/src/components/ai/AICustomFeatureCreator.tsx b/src/components/ai/AICustomFeatureCreator.tsx index 18883dc..0e893c0 100644 --- a/src/components/ai/AICustomFeatureCreator.tsx +++ b/src/components/ai/AICustomFeatureCreator.tsx @@ -45,7 +45,6 @@ export function AICustomFeatureCreator({ const [requirements, setRequirements] = useState>([ { text: '', rules: [] }, ]) - const [logicRules, setLogicRules] = useState([]) const [analyzingIdx, setAnalyzingIdx] = useState(null) const handleAnalyze = async () => { @@ -74,8 +73,6 @@ export function AICustomFeatureCreator({ confidence_score: 0.9, }) - // Capture dynamic logic rules (editable) - setLogicRules(Array.isArray(overall.logicRules) ? overall.logicRules : []) // Generate logic rules per requirement in parallel and attach to each requirement const perRequirementRules = await Promise.all( @@ -269,31 +266,6 @@ export function AICustomFeatureCreator({ )} - {aiAnalysis && ( -
- -
- {logicRules.map((rule, idx) => ( -
-
R{idx + 1}
- { - const next = [...logicRules] - next[idx] = e.target.value - setLogicRules(next) - }} - className="bg-white/10 border-white/20 text-white placeholder:text-white/40" - /> - -
- ))} -
- -
- )} {/* Form Actions */}
diff --git a/src/components/properties-panel.tsx b/src/components/properties-panel.tsx index 0415169..bed17d9 100644 --- a/src/components/properties-panel.tsx +++ b/src/components/properties-panel.tsx @@ -178,13 +178,13 @@ export function PropertiesPanel() {
-
+
{/* Component Info */} - - + + Component Info - +

{selectedComponent.type}

@@ -197,19 +197,19 @@ export function PropertiesPanel() { {/* Properties */} - - + + Properties - {renderPropertyEditor()} + {renderPropertyEditor()} {/* Position */} - - + + Position - +