Skip to content

fix: fontWeight and fullWidth on marketplace screen#1474

Merged
clegirar merged 3 commits intomainfrom
fix/font-weight-marketplace-screen
Jan 14, 2025
Merged

fix: fontWeight and fullWidth on marketplace screen#1474
clegirar merged 3 commits intomainfrom
fix/font-weight-marketplace-screen

Conversation

@clegirar
Copy link
Collaborator

@clegirar clegirar commented Jan 3, 2025

Change fontWeight and fullWidth on marketplace screen.

Before:
Screenshot 2025-01-03 at 14 09 26

After:
Screenshot 2025-01-03 at 14 10 44

Signed-off-by: clegirar <clemntgirard@gmail.com>
@clegirar clegirar self-assigned this Jan 3, 2025
@netlify
Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for teritori-dapp ready!

Name Link
🔨 Latest commit e570555
🔍 Latest deploy log https://app.netlify.com/sites/teritori-dapp/deploys/677ba6bffdd58e00088fe707
😎 Deploy Preview https://deploy-preview-1474--teritori-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for gno-dapp ready!

Name Link
🔨 Latest commit e570555
🔍 Latest deploy log https://app.netlify.com/sites/gno-dapp/deploys/677ba6bf232277000855ec93
😎 Deploy Preview https://deploy-preview-1474--gno-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@WaDadidou WaDadidou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes that are not fully in scope, but are easy to fix and to review in this kind of "text refacto" PR:

  • Remove StyleSheet usages
  • Remove useless TextStyles (if present in your changes)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the // FIXME: remove StyleSheet.create when you work on a file that mentions that :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think do some PR's that fix that should be better

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En vrai yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the // FIXME: remove StyleSheet.create

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

marginRight: layout.spacing_x0_5,
},
fontRegular14,
{ lineHeight: 19, marginRight: layout.spacing_x0_5 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until we don't need an extra height for a text, the lineHeight must be defined by fontRegular14 here.
We should remove a maximum of useless styles

Suggested change
{ lineHeight: 19, marginRight: layout.spacing_x0_5 },
{marginRight: layout.spacing_x0_5 },

Line height 19px that doesn't make sense because there is still a parent (row) with alignItems.

What issue could we have with an extra lineHeight ?

It can "shift" the aligned Items.
Here, it adds like 1px under "26.84K" (yea, it's a detail)
image

No line height 19px, normal align items
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fontRegular14 defined a line height (18).
Agree with the fact that define like that in the style a lineHeight doesn't make sense, and it should be cool to have the exact style (lineHeight included) for every fontRegular14 we use.
But i think we're in agreement 👍

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fontRegular14 has line height 16.

And I didn't understand if you will remove lineHeight: 19
But it's too detail, I'll LGTM :)

fontSize: 14,
marginBottom: 12,
}}
style={[fontRegular14, { fontSize: 14, marginBottom: 12 }]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
style={[fontRegular14, { fontSize: 14, marginBottom: 12 }]}
style={[fontRegular14, { marginBottom: 12 }]}

lineHeight: 16,
}}
>
<BrandText style={[fontRegular12, { lineHeight: 16 }]}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<BrandText style={[fontRegular12, { lineHeight: 16 }]}>
<BrandText style={fontRegular12}>

clegirar and others added 2 commits January 6, 2025 10:46
Copy link
Member

@MikaelVallenet MikaelVallenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

marginRight: layout.spacing_x0_5,
},
fontRegular14,
{ lineHeight: 19, marginRight: layout.spacing_x0_5 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fontRegular14 has line height 16.

And I didn't understand if you will remove lineHeight: 19
But it's too detail, I'll LGTM :)

@WaDadidou WaDadidou added this pull request to the merge queue Jan 13, 2025
@clegirar
Copy link
Collaborator Author

I checked the result of the text and it changed nothing, so I just wanted to stay consistent 👍

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2025
@clegirar clegirar added this pull request to the merge queue Jan 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 14, 2025
@clegirar clegirar added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit 427a33c Jan 14, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants