Skip to content

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

Python

Fix 3-variant grid layout to prevent squished appearance

Abi Raja63f66ff41719
diff --git a/VARIANT_EXPANSION_PLAN.md b/VARIANT_EXPANSION_PLAN.md
index 78c24915..ad3f76d4 100644
--- a/VARIANT_EXPANSION_PLAN.md
+++ b/VARIANT_EXPANSION_PLAN.md
@@ -230,5 +230,5 @@ const baseCommitObject = {
- [DONE] Let's set up a number of models that we want. And it will just cycle through those and repeat them. If models are [A, B], then if num = 5, it will be [A, B, A, B, A] and so on.
-1. With 3 options, it looks too squished on the front-end.
+1. [DONE] With 3 options, it looks too squished on the front-end.
2. We need to change hotkey to Option + 1, 2, 3, etc because when focused on textbox, the 1, 2, 3 keys are captured by the textbox.
diff --git a/frontend/src/components/variants/Variants.tsx b/frontend/src/components/variants/Variants.tsx
index 3a1031d4..ad0e9b9f 100644
--- a/frontend/src/components/variants/Variants.tsx
+++ b/frontend/src/components/variants/Variants.tsx
@@ -66,7 +66,7 @@ function Variants() {
if (variantCount <= 2) {
return "grid grid-cols-2 gap-2";
} else if (variantCount === 3) {
- return "grid grid-cols-3 gap-2";
+ return "grid grid-cols-2 gap-2"; // 2 columns, 3rd variant wraps below
} else if (variantCount === 4) {
return "grid grid-cols-2 gap-2"; // 2x2 grid
} else if (variantCount <= 6) {