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

CLDR-17947 site: pin image width, win fix #4054

Merged
merged 2 commits into from
Sep 16, 2024
Merged

CLDR-17947 site: pin image width, win fix #4054

merged 2 commits into from
Sep 16, 2024

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Sep 16, 2024

CLDR-17947

  • css: pin image width to 100% of the parent (the page), and also pin height to 90% of the viewable area.

also:

  • fix builder for windows pathnames

  • This PR completes the ticket.

Testing

ALLOW_MANY_COMMITS=true

@srl295 srl295 self-assigned this Sep 16, 2024
@srl295 srl295 requested review from AEApple and macchiati September 16, 2024 19:04
Copy link

✨ deployed to https://b1085791.cldr.pages.dev

@github-actions github-actions bot added the Site Update Updates docs/site label Sep 16, 2024
Copy link
Contributor

@conradarcturus conradarcturus left a comment

Choose a reason for hiding this comment

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

Small enough change and I know the context so I'm happy to accept.

For future PRs -- when you post PRs can you include screenshots and links to the before/after? It will help future CLDR developers have context for the fix.

From slack here's an example page that is helped by this fix: https://cldr.unicode.org/index/language-support-levels

@@ -180,3 +180,8 @@ header#atViewHeader {
div > header {
display: none !important;
}

img {
max-width: 100%;
Copy link
Member

Choose a reason for hiding this comment

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

Sounds like we should use svh & svw

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@macchiati what are you seeing instead? When I used dvh/dvw from your original proposal, the scale didn't work properly- it was far too wide still.

@@ -180,3 +180,8 @@ header#atViewHeader {
div > header {
display: none !important;
}

img {
max-width: 100%;
Copy link
Member

Choose a reason for hiding this comment

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

@macchiati
Copy link
Member

macchiati commented Sep 16, 2024 via email

@srl295
Copy link
Member Author

srl295 commented Sep 16, 2024

Small enough change and I know the context so I'm happy to accept.

For future PRs -- when you post PRs can you include screenshots and links to the before/after? It will help future CLDR developers have context for the fix.

From slack here's an example page that is helped by this fix: https://cldr.unicode.org/index/language-support-levels

added to the top

@srl295
Copy link
Member Author

srl295 commented Sep 16, 2024

img {
  max-width: 100svw;
  max-height: 90svh;
}

gives this which looks wrong to me (still a huge image, twice as wide as the page):

image


compare to the current PR version: https://b1085791.cldr.pages.dev/index/language-support-levels#language-selection-ui

img {
  max-width: 100%;
  max-height: 90dvh;
}

image

Do you prefer the former?

(the '90' is so that a super tall image still leaves some text above or below the image, so you can see there's something to scroll to.)

@macchiati
Copy link
Member

That is very strange. Let's go with what you have; we can check out alternatives later.

@macchiati macchiati self-requested a review September 16, 2024 21:11
@srl295 srl295 merged commit 5fd5305 into main Sep 16, 2024
15 checks passed
@srl295 srl295 deleted the cldr/cldr-17947/css0 branch September 16, 2024 21:38
@macchiati
Copy link
Member

Just tried it out; looks great.

haytenf pushed a commit to haytenf/cldr that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Site Update Updates docs/site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants