Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: APP-255 add supported file types link #2466

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,11 @@ export const PostForm = ({
description={
<Body>
<Trans>
'5MB max. Supported file types include text, spreadsheets, images,
and video files. '
5MB max. Supported file types include text, spreadsheets, images,
and video files.
</Trans>
<Link href="#">
&nbsp;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it'd be better to use padding instead of &nbsp;

Copy link
Member Author

Choose a reason for hiding this comment

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

Why? Using a white-space means it will adjust based on the font size so we would need to provide two padding values for mobile/desktop to get the same result.
I thought this made sense since the two elements are displayed inline, just like one single sentence but maybe there are other reasons I'm not aware of?

Copy link
Contributor

Choose a reason for hiding this comment

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

As &nbsp; adjusts with font size we can end up losing control over the space between the elements if for example the browser settings override our font sizes. Also, using CSS for spacing keeps content and style separate, which is a good practice. I think using margin or padding is a more reliable way to control spacing between inline elements and it's easier to update and maintain if the design changes.

Copy link
Member Author

@blushi blushi Sep 11, 2024

Choose a reason for hiding this comment

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

I agree but I believe in this particular case, it's rather a matter of content than spacing. We really want this to feel like it should be just a paragraph of text. Just like we do for links within post comment for instance.

image

<Link href="https://guides.regen.network/guides/regen-marketplace-project-developers-and-land-stewards/creating-posts">
<Trans>View all supported file types»</Trans>
</Link>
</Body>
Expand Down
42 changes: 21 additions & 21 deletions web-marketplace/src/lib/i18n/locales/en.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-09-10 18:28+0100\n"
"POT-Creation-Date: 2024-09-11 09:33+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -12,10 +12,6 @@ msgstr ""
msgid ""
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:252
msgid "'5MB max. Supported file types include text, spreadsheets, images, and video files. '"
msgstr ""

#: src/components/organisms/EditFileForm/EditFileForm.tsx:181
msgid "(drag map to choose location)"
msgstr ""
Expand Down Expand Up @@ -89,6 +85,10 @@ msgstr ""
msgid "1 Ton of CO2e"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:252
msgid "5MB max. Supported file types include text, spreadsheets, images, and video files."
msgstr ""

#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:27
msgid "A <0>program</0> involves the eligibility rules, monitoring and certification, and registration systems for credit trading and ownership tracking."
msgstr ""
Expand Down Expand Up @@ -196,7 +196,7 @@ msgstr ""
msgid "All projects"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:395
#: src/components/organisms/PostForm/PostForm.tsx:396
msgid "All uploaded files and their location data will be hidden from public view."
msgstr ""

Expand Down Expand Up @@ -1124,7 +1124,7 @@ msgstr ""
msgid "Featured Projects"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:367
#: src/components/organisms/PostForm/PostForm.tsx:368
msgid "File locations can still be shared privately via a secret link."
msgstr ""

Expand All @@ -1140,7 +1140,7 @@ msgstr ""
msgid "Files"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:402
#: src/components/organisms/PostForm/PostForm.tsx:403
msgid "Files can still be shared privately via secret link."
msgstr ""

Expand Down Expand Up @@ -1440,19 +1440,19 @@ msgstr ""
msgid "Make sure this is the correct REGEN address. <0>If you change this to an address you don’t have access to, you will be unable to edit the project.</0>"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:418
#: src/components/organisms/PostForm/PostForm.tsx:419
msgid "Make the entire post private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:332
#: src/components/organisms/PostForm/PostForm.tsx:333
msgid "Make the entire post public"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:384
#: src/components/organisms/PostForm/PostForm.tsx:385
msgid "Make the files and location data private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:349
#: src/components/organisms/PostForm/PostForm.tsx:350
msgid "Make the location data private"
msgstr ""

Expand Down Expand Up @@ -1617,7 +1617,7 @@ msgstr ""
msgid "Note: all location data can be made private on the main create post form."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:454
#: src/components/organisms/PostForm/PostForm.tsx:455
msgid "NOTE: As posts are anchored to the blockchain, they are not editable once published"
msgstr ""

Expand Down Expand Up @@ -1647,7 +1647,7 @@ msgstr ""
msgid "old project admin"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:360
#: src/components/organisms/PostForm/PostForm.tsx:361
msgid "Only the locations of the files will be hidden from public view."
msgstr ""

Expand Down Expand Up @@ -1730,7 +1730,7 @@ msgstr ""
msgid "Portfolio"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:354
#: src/components/organisms/PostForm/PostForm.tsx:355
msgid "Post and files are public"
msgstr ""

Expand All @@ -1742,7 +1742,7 @@ msgstr ""
msgid "Post is private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:389
#: src/components/organisms/PostForm/PostForm.tsx:390
msgid "Post is public"
msgstr ""

Expand Down Expand Up @@ -1806,7 +1806,7 @@ msgstr ""
msgid "Privacy"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:322
#: src/components/organisms/PostForm/PostForm.tsx:323
msgid "Privacy settings"
msgstr ""

Expand Down Expand Up @@ -2505,11 +2505,11 @@ msgstr ""
msgid "The individual or organization that is in charge of managing the project and will appear on the project page."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:424
#: src/components/organisms/PostForm/PostForm.tsx:425
msgid "The post and all of its contents will be hidden from public view."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:431
#: src/components/organisms/PostForm/PostForm.tsx:432
msgid "The post and files still can be shared privately via secret link."
msgstr ""

Expand Down Expand Up @@ -2603,7 +2603,7 @@ msgstr ""
msgid "This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:337
#: src/components/organisms/PostForm/PostForm.tsx:338
msgid "This post and all of its files will be visible."
msgstr ""

Expand Down Expand Up @@ -2816,7 +2816,7 @@ msgstr ""
msgid "VIEW ALL SELL ORDERS"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:257
#: src/components/organisms/PostForm/PostForm.tsx:258
msgid "View all supported file types»"
msgstr ""

Expand Down
42 changes: 21 additions & 21 deletions web-marketplace/src/lib/i18n/locales/es.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2024-09-10 18:28+0100\n"
"POT-Creation-Date: 2024-09-11 09:33+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -12,10 +12,6 @@ msgstr ""
msgid ""
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:252
msgid "'5MB max. Supported file types include text, spreadsheets, images, and video files. '"
msgstr ""

#: src/components/organisms/EditFileForm/EditFileForm.tsx:181
msgid "(drag map to choose location)"
msgstr ""
Expand Down Expand Up @@ -89,6 +85,10 @@ msgstr ""
msgid "1 Ton of CO2e"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:252
msgid "5MB max. Supported file types include text, spreadsheets, images, and video files."
msgstr ""

#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.Stakeholders.tsx:27
msgid "A <0>program</0> involves the eligibility rules, monitoring and certification, and registration systems for credit trading and ownership tracking."
msgstr ""
Expand Down Expand Up @@ -196,7 +196,7 @@ msgstr ""
msgid "All projects"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:395
#: src/components/organisms/PostForm/PostForm.tsx:396
msgid "All uploaded files and their location data will be hidden from public view."
msgstr ""

Expand Down Expand Up @@ -1124,7 +1124,7 @@ msgstr ""
msgid "Featured Projects"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:367
#: src/components/organisms/PostForm/PostForm.tsx:368
msgid "File locations can still be shared privately via a secret link."
msgstr ""

Expand All @@ -1140,7 +1140,7 @@ msgstr ""
msgid "Files"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:402
#: src/components/organisms/PostForm/PostForm.tsx:403
msgid "Files can still be shared privately via secret link."
msgstr ""

Expand Down Expand Up @@ -1440,19 +1440,19 @@ msgstr ""
msgid "Make sure this is the correct REGEN address. <0>If you change this to an address you don’t have access to, you will be unable to edit the project.</0>"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:418
#: src/components/organisms/PostForm/PostForm.tsx:419
msgid "Make the entire post private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:332
#: src/components/organisms/PostForm/PostForm.tsx:333
msgid "Make the entire post public"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:384
#: src/components/organisms/PostForm/PostForm.tsx:385
msgid "Make the files and location data private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:349
#: src/components/organisms/PostForm/PostForm.tsx:350
msgid "Make the location data private"
msgstr ""

Expand Down Expand Up @@ -1617,7 +1617,7 @@ msgstr ""
msgid "Note: all location data can be made private on the main create post form."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:454
#: src/components/organisms/PostForm/PostForm.tsx:455
msgid "NOTE: As posts are anchored to the blockchain, they are not editable once published"
msgstr ""

Expand Down Expand Up @@ -1647,7 +1647,7 @@ msgstr ""
msgid "old project admin"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:360
#: src/components/organisms/PostForm/PostForm.tsx:361
msgid "Only the locations of the files will be hidden from public view."
msgstr ""

Expand Down Expand Up @@ -1730,7 +1730,7 @@ msgstr ""
msgid "Portfolio"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:354
#: src/components/organisms/PostForm/PostForm.tsx:355
msgid "Post and files are public"
msgstr ""

Expand All @@ -1742,7 +1742,7 @@ msgstr ""
msgid "Post is private"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:389
#: src/components/organisms/PostForm/PostForm.tsx:390
msgid "Post is public"
msgstr ""

Expand Down Expand Up @@ -1806,7 +1806,7 @@ msgstr ""
msgid "Privacy"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:322
#: src/components/organisms/PostForm/PostForm.tsx:323
msgid "Privacy settings"
msgstr ""

Expand Down Expand Up @@ -2505,11 +2505,11 @@ msgstr ""
msgid "The individual or organization that is in charge of managing the project and will appear on the project page."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:424
#: src/components/organisms/PostForm/PostForm.tsx:425
msgid "The post and all of its contents will be hidden from public view."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:431
#: src/components/organisms/PostForm/PostForm.tsx:432
msgid "The post and files still can be shared privately via secret link."
msgstr ""

Expand Down Expand Up @@ -2603,7 +2603,7 @@ msgstr ""
msgid "This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name."
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:337
#: src/components/organisms/PostForm/PostForm.tsx:338
msgid "This post and all of its files will be visible."
msgstr ""

Expand Down Expand Up @@ -2816,7 +2816,7 @@ msgstr ""
msgid "VIEW ALL SELL ORDERS"
msgstr ""

#: src/components/organisms/PostForm/PostForm.tsx:257
#: src/components/organisms/PostForm/PostForm.tsx:258
msgid "View all supported file types»"
msgstr ""

Expand Down