From 6aba5ab230d61a0f92509a271b1729db035b6112 Mon Sep 17 00:00:00 2001
From: Sam Chau
Date: Sun, 12 Jan 2025 01:29:54 +1030
Subject: [PATCH] fix: make clone / select buttons the same size for format
card
---
frontend/src/components/format/FormatCard.jsx | 65 ++++++++++---------
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/frontend/src/components/format/FormatCard.jsx b/frontend/src/components/format/FormatCard.jsx
index ac65210..453aedd 100644
--- a/frontend/src/components/format/FormatCard.jsx
+++ b/frontend/src/components/format/FormatCard.jsx
@@ -106,38 +106,43 @@ function FormatCard({
)}
- {isSelectionMode ? (
-
-
+ {isSelectionMode ? (
+
- {isSelected && (
-
- )}
- {willBeSelected && !isSelected && (
-
- )}
-
-
- ) : (
-
- )}
+ ? 'Will be selected'
+ : 'Select'
+ }>
+
+ {isSelected && (
+
+ )}
+ {willBeSelected && !isSelected && (
+
+ )}
+
+
+ ) : (
+
+ )}
+
{/* Description */}