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: Make spacings in Settings menu more consistent #11709

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Nov 16, 2020

SUMMARY

Decreases margin for item group title, increases margin for the last element of item group, increases margin for "About" section.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

image

TEST PLAN

ADDITIONAL INFORMATION

CC: @ktmud

@codecov-io
Copy link

codecov-io commented Nov 16, 2020

Codecov Report

Merging #11709 (6232248) into master (2f036e9) will decrease coverage by 2.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11709      +/-   ##
==========================================
- Coverage   62.85%   60.47%   -2.39%     
==========================================
  Files         889      843      -46     
  Lines       43053    41310    -1743     
  Branches     4015     3716     -299     
==========================================
- Hits        27063    24981    -2082     
- Misses      15812    16329     +517     
+ Partials      178        0     -178     
Flag Coverage Δ
cypress 56.01% <100.00%> (?)
javascript ?
python 62.86% <ø> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/components/Menu/Menu.tsx 92.18% <100.00%> (+30.75%) ⬆️
...uperset-frontend/src/dashboard/util/dnd-reorder.js 0.00% <0.00%> (-100.00%) ⬇️
...rset-frontend/src/dashboard/util/getEmptyLayout.js 0.00% <0.00%> (-100.00%) ⬇️
...dashboard/components/resizable/ResizableHandle.jsx 0.00% <0.00%> (-100.00%) ⬇️
.../src/dashboard/util/getFilterScopeFromNodesTree.js 0.00% <0.00%> (-93.48%) ⬇️
...src/dashboard/components/gridComponents/Header.jsx 10.52% <0.00%> (-86.85%) ⬇️
...rc/dashboard/components/gridComponents/Divider.jsx 13.33% <0.00%> (-86.67%) ⬇️
...set-frontend/src/views/CRUD/welcome/EmptyState.tsx 5.71% <0.00%> (-82.10%) ⬇️
...et-frontend/src/components/ListView/ActionsBar.tsx 11.11% <0.00%> (-81.20%) ⬇️
...et-frontend/src/components/Menu/LanguagePicker.tsx 0.00% <0.00%> (-80.00%) ⬇️
... and 364 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 2f036e9...6232248. Read the comment docs.

@junlincc junlincc requested review from ktmud and rusackas November 16, 2020 16:25
.about-section {
margin: ${({ theme }) => theme.gridUnit}px 0
${({ theme }) => theme.gridUnit * 2}px;
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we use :last-child so this can be more generic?

Copy link
Member Author

Choose a reason for hiding this comment

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

Those styles are needed not for any last child but specifically for "About us" section. That section is a bit "hacked" as "Version" and "SHA" are not defined as menu items - we don't want them to be clickable or highlighted on hover. Because of that, default Antd styles from Menu were not applied there and I added those styles to make it look nicer.

Copy link
Member

Choose a reason for hiding this comment

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

In that case, we may still generalize it something like MetaMenuItem in case this pattern is used elsewhere. But let's not over-optimize for now.

@junlincc junlincc self-requested a review November 19, 2020 17:49
Copy link
Member

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@ktmud ktmud merged commit 63ef649 into apache:master Nov 19, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants