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(cosmetic): Limiting modal height #20147

Merged
merged 3 commits into from
May 27, 2022
Merged

fix(cosmetic): Limiting modal height #20147

merged 3 commits into from
May 27, 2022

Conversation

rusackas
Copy link
Member

@rusackas rusackas commented May 20, 2022

SUMMARY

Sets flexbox layout details on modals so that they don't get too tall for the viewport and cut off action buttons. Now they go to a reasonable max hight, and scroll within the max bounds.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
before

After:
after

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #20147 (0e1d78c) into master (e2f11d3) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #20147      +/-   ##
==========================================
- Coverage   66.45%   66.42%   -0.03%     
==========================================
  Files        1721     1722       +1     
  Lines       64497    64772     +275     
  Branches     6805     6897      +92     
==========================================
+ Hits        42860    43027     +167     
- Misses      19905    20000      +95     
- Partials     1732     1745      +13     
Flag Coverage Δ
hive 53.70% <ø> (ø)
javascript 51.40% <100.00%> (+0.06%) ⬆️
mysql 82.14% <ø> (ø)
postgres 82.20% <ø> (ø)
presto 53.56% <ø> (ø)
python 82.62% <ø> (ø)
sqlite 81.94% <ø> (ø)
unit 49.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset-frontend/src/components/Modal/Modal.tsx 86.76% <100.00%> (+0.61%) ⬆️
...end/src/dashboard/components/SliceHeader/index.tsx 84.37% <0.00%> (-2.86%) ⬇️
.../src/explore/components/DataTableControl/index.tsx 69.81% <0.00%> (-0.86%) ⬇️
...et-frontend/src/explore/reducers/exploreReducer.js 28.26% <0.00%> (-0.49%) ⬇️
...ntend/src/explore/controlUtils/getControlConfig.ts 100.00% <0.00%> (ø)
...plugins/legacy-plugin-chart-heatmap/src/Heatmap.js 0.00% <0.00%> (ø)
...es/superset-ui-core/src/query/buildQueryContext.ts 100.00% <0.00%> (ø)
...lore/components/useOriginalFormattedTimeColumns.ts 75.00% <0.00%> (ø)
...set-frontend/src/explore/actions/exploreActions.ts 52.00% <0.00%> (+2.00%) ⬆️
...et-frontend/src/components/EditableTitle/index.tsx 73.91% <0.00%> (+3.91%) ⬆️
... and 3 more

Continue to review full report at Codecov.

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

Copy link
Member

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

Lgtm!

@rusackas rusackas merged commit c8fe518 into master May 27, 2022
@rusackas rusackas deleted the limiting-modal-height branch May 27, 2022 16:51
rusackas added a commit that referenced this pull request Jun 3, 2022
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
* more changes that didn't make it into the last commit somehow.

* Allow modals to be short, but reach a max height and scroll

* now with template literals
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 and removed 🚢 2.0.1 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/S 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants