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

fix overflowing plugins title and badge #5333

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

MikeMcC399
Copy link
Contributor

Resubmission of #5320
Closes #5305

This PR adds css property flex-direction: column for the class pluginTitle in src/components/plugins-list/style.module.css, correcting a display issue on https://docs.cypress.io/plugins.

The plugin badge (official, verified, community or experimental) is now always displayed below the name of the plugin and it never overflows out of the plugin's box.

It also corrects a potential issue which has not been apparent so far, that an unhyphenated plugin name longer than 24 characters would also overflow. This is a consequence of combining h3 with flex.

Before

plugins overlap

After

plugins no overflow

Verification

  1. Display https://docs.cypress.io/plugins in Google Chrome / Mozilla Firefox and vary the width of the browser. Ensure that all plugin details stay within the plugin's box.

  2. Temporarily add a 40 character unhyphenated plugin name (e.g. A234567890B234567890C234567890D234567890) and observe that this name stays inside the box independently of the browser's viewport width.

References

cc: @elylucas

@netlify
Copy link

netlify bot commented Jun 22, 2023

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7920b3d

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399
Copy link
Contributor Author

@mike-plummer
I accidentally deleted the wrong fork yesterday when I was cleaning up after another project I was working on closed down. I couldn't re-open the closed PR #5320, so I have re-submitted here.

Sorry for the inconvenience!

I think this PR is good enough to merge, even if it could possibly be improved on, especially as it is only a cosmetic correction.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review June 22, 2023 10:58
@mike-plummer mike-plummer self-assigned this Jun 22, 2023
Copy link
Contributor

@mike-plummer mike-plummer left a comment

Choose a reason for hiding this comment

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

@MikeMcC399 No problem, happens to all of us from time to time 😆 . I agree, good enough and is a definite improvement - can address any nitpicky stuff separately

@mike-plummer mike-plummer merged commit 478ba6c into cypress-io:main Jun 22, 2023
@MikeMcC399 MikeMcC399 deleted the fix/plugins-css branch June 22, 2023 13:30
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.

Plugin badges overflow out of box
3 participants