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: Fixes right menu layout in different screen sizes #14689

Merged
merged 1 commit into from
May 21, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes #14649.

@rusackas @junlincc @pkdotson

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

screen-recording-2021-05-18-at-81831-am_PsMjueN7.mov
screen-recording-2021-05-18-at-81303-am_sYloDaxy.mov

TEST PLAN

1 - Resize screen
2 - Check the right menu behaviour

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@junlincc
Copy link
Member

/testenv up

Copy link
Member

@pkdotson pkdotson left a comment

Choose a reason for hiding this comment

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

I pulled the code and LGTM! Thanks for the fix.

@pkdotson pkdotson requested a review from rusackas May 18, 2021 22:58
Copy link
Member

@pkdotson pkdotson left a comment

Choose a reason for hiding this comment

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

I do notice however when the language selector is not in the right menu there is a lot of padding in betweeen the plus icon and settings.
Screen Shot 2021-05-18 at 4 03 07 PM

Copy link
Member

@pkdotson pkdotson left a comment

Choose a reason for hiding this comment

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

I do notice however when the language selector is not in the right menu there is a lot of padding in betweeen the plus icon and settings.
Screen Shot 2021-05-18 at 4 03 07 PM

@codecov
Copy link

codecov bot commented May 19, 2021

Codecov Report

Merging #14689 (4b91a42) into master (be8c176) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14689   +/-   ##
=======================================
  Coverage   77.53%   77.53%           
=======================================
  Files         959      959           
  Lines       48648    48655    +7     
  Branches     5734     5735    +1     
=======================================
+ Hits        37718    37725    +7     
  Misses      10729    10729           
  Partials      201      201           
Flag Coverage Δ
javascript 72.50% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/common/components/index.tsx 100.00% <ø> (ø)
superset-frontend/src/components/Menu/Menu.tsx 66.26% <100.00%> (+1.26%) ⬆️
...uperset-frontend/src/components/Menu/MenuRight.tsx 93.75% <100.00%> (+0.56%) ⬆️

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 be8c176...4b91a42. Read the comment docs.

@github-actions
Copy link
Contributor

@junlincc Ephemeral environment spinning up at http://54.214.160.222:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@michael-s-molina
Copy link
Member Author

I do notice however when the language selector is not in the right menu there is a lot of padding in betweeen the plus icon and settings.
Screen Shot 2021-05-18 at 4 03 07 PM

@pkdotson To fix this I changed the style of src/common/components/index.tsx -> StyledNav. Since you worked on the menus, please let me know if this won't introduce any regression.
https://github.com/apache/superset/pull/14689/files#diff-3cb5009f3350abc77ce448ae6bfc6e9dcd99b461136ac4beaf53f0f843ecfccc

@michael-s-molina michael-s-molina mentioned this pull request May 20, 2021
8 tasks
@junlincc
Copy link
Member

hi!menu items seem not aligned on resize?

@michael-s-molina
Copy link
Member Author

hi!menu items seem not aligned on resize?

My last commit fixed @pkdotson comment. The ephemeral env was not updated though.

@rusackas
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@rusackas Ephemeral environment spinning up at http://34.220.89.138:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM, works with and without the language menu displayed.

@rusackas rusackas merged commit 1e8b6eb into apache:master May 21, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 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 size/M 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Right menu drops to full column on page resize
5 participants