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

Add word wrap to #extension-info on mobile to prevent page horizontal elongation #966

Merged
merged 1 commit into from
May 18, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented May 18, 2024

#extension-info is the thing that says "Yomitan v24.5.14.0" or whatever version in the mobile popup (theres some screenshots of this on #886). If the version number is too long (for example v99.99.99.99) this can horizontally extend the action popup page beyond the device's view.

Dev builds of Yomitan also suffer badly from this with the addition of the incredibly long "(development build)" text.

This fix puts "Yomitan" and the version number on different lines if it gets too long.

@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/ui-ux The issue or PR is related to UI/UX/Design labels May 18, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner May 18, 2024 20:07
@@ -496,4 +496,8 @@ select.profile-select {
width: 100%;
padding-top: 37.7%;
}
#extension-info {
max-width: 95vw;
Copy link
Collaborator

Choose a reason for hiding this comment

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

vw?

Copy link
Collaborator

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.

Due to the text extending the page itself it isnt possible to use percents here so that's why it's vw.

@jamesmaa jamesmaa added this pull request to the merge queue May 18, 2024
Merged via the queue into yomidevs:master with commit 22d066d May 18, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants