Skip to content

Commit 2729ea3

Browse files
committed
Adjust spacing, colors, and text formatting in Compatibility Questions display for improved visual consistency
1 parent d1720ce commit 2729ea3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

web/components/answers/compatibility-questions-display.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export function CompatibilityAnswerBlock(props: {
453453
<Col
454454
data-testid="profile-compatibility-section"
455455
className={
456-
'bg-canvas-50 border border-canvas-200 flex-grow gap-4 whitespace-pre-line rounded-xl p-4 leading-relaxed'
456+
'bg-canvas-50 border border-canvas-200 flex-grow gap-2 whitespace-pre-line rounded-xl p-4 leading-relaxed'
457457
}
458458
>
459459
<Row
@@ -535,14 +535,14 @@ export function CompatibilityAnswerBlock(props: {
535535
</Row>
536536
{answerText && (
537537
<Row
538-
className="bg-canvas-100 w-fit gap-1 rounded-xl px-2 py-1 text-sm"
538+
className="bg-canvas-200 w-fit gap-1 rounded-xl px-2 py-1 text-sm"
539539
data-testid="profile-compatibility-question-answer"
540540
>
541541
{answerText}
542542
</Row>
543543
)}
544-
<Row className="px-2 -mt-4" data-testid="profile-compatibility-question-answer-explanation">
545-
{answer?.explanation && <Linkify className="" text={answer.explanation} />}
544+
<Row className="px-2" data-testid="profile-compatibility-question-answer-explanation">
545+
{answer?.explanation && <Linkify className="" text={`"${answer.explanation}"`} />}
546546
</Row>
547547
{distinctPreferredAnswersText.length > 0 && (
548548
<Col className="gap-2">
@@ -556,7 +556,7 @@ export function CompatibilityAnswerBlock(props: {
556556
data-testid="profile-compatibility-question-acceptable-answer"
557557
>
558558
{distinctPreferredAnswersText.map((text) => (
559-
<Row key={text} className="bg-canvas-100 w-fit gap-1 rounded-xl px-2 py-1 text-sm">
559+
<Row key={text} className="bg-canvas-200 w-fit gap-1 rounded-xl px-2 py-1 text-sm">
560560
{text}
561561
</Row>
562562
))}

0 commit comments

Comments
 (0)