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 citation modal width on mobile device #4867

Merged
merged 10 commits into from
Sep 25, 2023
Merged

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Sep 20, 2023

Fixes #4867.

Changelog Entry

Fixed

  • Fixes #4866. Citation modal show fill screen width on mobile device and various fit-and-finish, by @compulim, in PR #4867

Description

Citation modal should fill screen width on mobile device. And various fit-and-finish work.

Specific Changes

  • Update ModalDialog style
    • Modal margin set to 16px on each side
    • On mobile device (< 640px): unset, i.e. Chrome/Edge default to calc(100% - 32px)
    • On desktop (>= 640px): from 608px to 60%. 608px = default at 640px or 100% - 32px
  • Update RenderMarkdown style to unset the button style for citation link
  • Set line height to 20px
  • Add citation header if available
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)~
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim linked an issue Sep 20, 2023 that may be closed by this pull request
@compulim compulim marked this pull request as ready for review September 20, 2023 06:23
@compulim compulim changed the title Citation modal width for mobile device Fix citation modal width on mobile device Sep 20, 2023
tdurnford
tdurnford previously approved these changes Sep 22, 2023
@compulim compulim merged commit afe913c into main Sep 25, 2023
@compulim compulim deleted the fix-4866-citation-modal-width branch September 25, 2023 22:14
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.

Citation modal should use full width on mobile device
2 participants