Skip to content

Commit

Permalink
fix(text-size): resize all texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed May 27, 2024
1 parent 61d1cd8 commit bd9037d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/pages/contribution-page/message-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const MessagePreview = ({
: "fr-icon-user-line"
}
>
<div
<Text
size="sm"
style={{ cursor: "pointer" }}
onClick={() => copyToClipboard(data.id, "ID copié")}
>
Expand All @@ -73,19 +74,22 @@ const MessagePreview = ({
{copySuccess}
</span>
)}
</div>
</Text>
{data.team && data.team.length > 0 && (
<Text>
<Text size="sm">
Traité par : {data?.team[0]} le{" "}
{new Date(data.modified_at).toLocaleDateString()}
</Text>
)}
</Col>
)}
<Col md="4">
<Text>{data.name ? `Nom: ${data.name}` : "Nom non renseigné"}</Text>
<Text size="sm">
{data.name ? `Nom: ${data.name}` : "Nom non renseigné"}
</Text>
{data.email && (
<div
<Text
size="sm"
style={{ cursor: "pointer" }}
onClick={() => copyToClipboard(data.email, "Email copié")}
>
Expand All @@ -104,24 +108,24 @@ const MessagePreview = ({
{copySuccess}
</span>
)}
</div>
</Text>
)}
</Col>
<Col md="4" className="contributorInfo">
{data.organisation ? (
<Text>Organisation: {data.organisation}</Text>
<Text size="sm">Organisation: {data.organisation}</Text>
) : (
<Text>Organisation non renseignée</Text>
<Text size="sm">Organisation non renseignée</Text>
)}
{data.fonction ? (
<Text>Fonction: {data.fonction}</Text>
<Text size="sm">Fonction: {data.fonction}</Text>
) : (
<Text>Fonction non renseignée</Text>
)}
</Col>
</Row>
<Row className={contributorMessageClassName}>
<Text>
<Text size="sm">
<HighlightedMessage
message={data.message}
highlightedQuery={highlightedQuery}
Expand Down

0 comments on commit bd9037d

Please sign in to comment.