From 03bf65e7cdaae527045ecda11e30e6c4c7af858b Mon Sep 17 00:00:00 2001 From: Ciel Bellerose Date: Fri, 11 Sep 2026 17:10:38 -0400 Subject: [PATCH] #694 render long answers inline like every other answer type Drop the isFullWidthAnswer special case so every row uses the one label/value grid; add break-words to the long-answer
so an unbroken string wraps instead of overflowing the narrower inline column. Skeleton's third row now matches the same grid shape. Co-Authored-By: Claude Sonnet 5 --- components/features/application-answers-list.tsx | 12 ++---------- components/features/application-answers-skeleton.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/components/features/application-answers-list.tsx b/components/features/application-answers-list.tsx index 0d12741d..36dcd265 100644 --- a/components/features/application-answers-list.tsx +++ b/components/features/application-answers-list.tsx @@ -68,7 +68,7 @@ function AnswerValue({
) : ( -
+
{answer.value[0]}
); @@ -87,10 +87,6 @@ function AnswerValue({ } } -function isFullWidthAnswer(answer: ApplicationReviewAnswer) { - return answer.type === 'long_answer' && answer.value.length === 1; -} - export function ApplicationAnswersList({ answers, emptyMessage, @@ -106,11 +102,7 @@ export function ApplicationAnswersList({ {answers.map((answer) => (
{answer.questionLabel} diff --git a/components/features/application-answers-skeleton.tsx b/components/features/application-answers-skeleton.tsx index da43dcbc..af01618f 100644 --- a/components/features/application-answers-skeleton.tsx +++ b/components/features/application-answers-skeleton.tsx @@ -1,5 +1,8 @@ import { Skeleton } from '@/components/ui/skeleton'; +const ANSWER_ROW_CLASS = + 'px-4 py-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:gap-4'; + export function AnswersCardSkeleton({ titleWidth }: { titleWidth: string }) { return (
@@ -7,15 +10,15 @@ export function AnswersCardSkeleton({ titleWidth }: { titleWidth: string }) {
-
+
-
+
-
+