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: Add modal max width on wide screens #3674

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented Jan 21, 2025

Description

Adding an optional classname prop for the size of a modal to allow possible extra styles such as max width. Currently, on large screens, the designated width is 50% which can be much wider than needed, especially if the modal also has vertical scrolling as our BaseModal element right now has a max height of `m-h-96' designated.

Code Example

Notable Changes

Screenshots

Existing situation that is super wide where a single text line doesn't even reach the halfway point of the modal:
Screenshot 2025-01-21 at 1 15 31 PM

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Jan 21, 2025

Bundle Report

Changes will increase total bundle size by 534 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.22MB 271 bytes (0.0%) ⬆️
gazebo-staging-esm 6.27MB 263 bytes (0.0%) ⬆️

Copy link

codecov bot commented Jan 21, 2025

Bundle Report

Changes will increase total bundle size by 268.83kB (2.21%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.19MB 134.57kB (2.22%) ⬆️
gazebo-production-esm 6.24MB 134.27kB (2.2%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (b53522f) to head (a688ddd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3674   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files         825      825           
  Lines       14806    14806           
  Branches     4193     4201    +8     
=======================================
  Hits        14626    14626           
  Misses        171      171           
  Partials        9        9           
Files with missing lines Coverage Δ
src/ui/Modal/Modal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.40% <ø> (ø)
Services 99.27% <ø> (ø)
Shared 99.36% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b53522f...a688ddd. Read the comment docs.

Copy link

codecov-public-qa bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (b53522f) to head (a688ddd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3674   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files         825      825           
  Lines       14806    14806           
  Branches     4193     4193           
=======================================
  Hits        14626    14626           
  Misses        171      171           
  Partials        9        9           
Files with missing lines Coverage Δ
src/ui/Modal/Modal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.40% <ø> (ø)
Services 99.27% <ø> (ø)
Shared 99.36% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b53522f...a688ddd. Read the comment docs.

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.81%. Comparing base (02d5b6b) to head (a0018fc).
Report is 7 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3674    +/-   ##
========================================
  Coverage   98.80%   98.81%            
========================================
  Files         820      825     +5     
  Lines       14784    14892   +108     
  Branches     4206     4241    +35     
========================================
+ Hits        14608    14716   +108     
  Misses        167      167            
  Partials        9        9            
Files with missing lines Coverage Δ
src/ui/Modal/Modal.tsx 100.00% <ø> (ø)

... and 20 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (+<0.01%) ⬆️
Pages 98.43% <ø> (+<0.01%) ⬆️
Services 99.30% <ø> (+0.01%) ⬆️
Shared 99.37% <ø> (+<0.01%) ⬆️
UI 99.14% <ø> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02d5b6b...a0018fc. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Jan 21, 2025

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
54749b8 Tue, 21 Jan 2025 21:28:16 GMT Expired Expired
54749b8 Tue, 21 Jan 2025 21:28:58 GMT Expired Expired
a0018fc Mon, 27 Jan 2025 08:44:43 GMT Expired Expired
d672691 Wed, 29 Jan 2025 20:41:45 GMT Expired Expired
d672691 Wed, 29 Jan 2025 20:42:41 GMT Expired Expired
a688ddd Wed, 29 Jan 2025 22:16:55 GMT Cloud Enterprise

@codecov-notifications
Copy link

codecov-notifications bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3674   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files         825      825           
  Lines       14806    14806           
  Branches     4193     4201    +8     
=======================================
  Hits        14626    14626           
  Misses        171      171           
  Partials        9        9           
Files with missing lines Coverage Δ
src/ui/Modal/Modal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.40% <ø> (ø)
Services 99.27% <ø> (ø)
Shared 99.36% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b53522f...a688ddd. Read the comment docs.

@calvin-codecov calvin-codecov changed the title fix: Add size classname prop for modal fix: Add modql max width on wide screens Jan 29, 2025
@calvin-codecov calvin-codecov changed the title fix: Add modql max width on wide screens fix: Add modal max width on wide screens Jan 29, 2025
@calvin-codecov calvin-codecov added this pull request to the merge queue Jan 29, 2025
@calvin-codecov calvin-codecov removed this pull request from the merge queue due to a manual request Jan 29, 2025
@calvin-codecov calvin-codecov added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 0647710 Jan 29, 2025
54 checks passed
@calvin-codecov calvin-codecov deleted the cy/modal_classname branch January 29, 2025 22:52
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.

3 participants