Skip to content

Commit

Permalink
[#1344] Update mobile card title width to prevent overlapping w/ subm…
Browse files Browse the repository at this point in the history
…ission_type label
  • Loading branch information
ifirmawan committed May 15, 2024
1 parent 3822b93 commit 42097ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Card = ({ title, subTitles, submissionType }) => {
[SUBMISSION_TYPES.verification]: '#ca8a04',
[SUBMISSION_TYPES.certification]: '#ea580c',
};
const titleWidth = submissionType ? '70%' : '100%';
return (
<RneCard>
{submissionType && (
Expand Down Expand Up @@ -45,7 +46,9 @@ const Card = ({ title, subTitles, submissionType }) => {
</Text>
</View>
)}
{title && <RneCard.Title style={{ textAlign: 'left' }}>{title}</RneCard.Title>}
{title && (
<RneCard.Title style={{ textAlign: 'left', width: titleWidth }}>{title}</RneCard.Title>
)}
{subTitles?.map((s, sx) => (
<Text key={sx}>{s}</Text>
))}
Expand Down

0 comments on commit 42097ba

Please sign in to comment.