From 45da6ec7506fa22ef5375e4f3f977bb1262c956d Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 21 Dec 2024 20:46:57 -0800 Subject: [PATCH] Separate the shorthand of each suggestion card from the prefilled text --- .../components/suggestions/suggestionCard.tsx | 11 +++++++---- .../components/suggestions/suggestionsData.ts | 18 +++++++++++++++++- src/interface/web/app/page.tsx | 8 +------- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/src/interface/web/app/components/suggestions/suggestionCard.tsx b/src/interface/web/app/components/suggestions/suggestionCard.tsx index 5b32a061..8bff1ba4 100644 --- a/src/interface/web/app/components/suggestions/suggestionCard.tsx +++ b/src/interface/web/app/components/suggestions/suggestionCard.tsx @@ -20,7 +20,7 @@ interface StepTwoSuggestionCardProps { } export function StepOneSuggestionCard(data: StepOneSuggestionCardProps) { - const cardClassName = `${styles.card} md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer md:p-2`; + const cardClassName = `${styles.card} md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer md:p-2 animate-fade-in-up`; const descriptionClassName = `${styles.text} dark:text-white`; const cardContent = ( @@ -48,7 +48,10 @@ export function StepTwoSuggestionCard(data: StepTwoSuggestionCardProps) {
- + @@ -61,14 +64,14 @@ export function StepTwoSuggestionCard(data: StepTwoSuggestionCardProps) { } export function StepOneSuggestionRevertCard(data: StepOneSuggestionRevertCardProps) { - const cardClassName = `${styles.card} md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer m-2 md:p-2 animate-fade-in-up`; + const cardClassName = `${styles.card} md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer m-2 md:p-2 animate-fade-in-up border-none`; const descriptionClassName = `${styles.text} dark:text-white`; return (
- + {convertSuggestionTitleToIconClass(data.title, data.color.toLowerCase())}