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: Align icon #11848

Merged
merged 1 commit into from
Dec 2, 2020
Merged

fix: Align icon #11848

merged 1 commit into from
Dec 2, 2020

Conversation

maloun96
Copy link
Contributor

SUMMARY

Fix align star icon center

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE
image
AFTER
image

TEST PLAN

Log into Superset
Navigate to Charts
Select one chart

ADDITIONAL INFORMATION

@codecov-io
Copy link

codecov-io commented Nov 30, 2020

Codecov Report

Merging #11848 (1c83d36) into master (4666445) will decrease coverage by 3.47%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11848      +/-   ##
==========================================
- Coverage   67.12%   63.65%   -3.48%     
==========================================
  Files         915      915              
  Lines       44537    44529       -8     
  Branches     4235     4235              
==========================================
- Hits        29897    28345    -1552     
- Misses      14526    16006    +1480     
- Partials      114      178      +64     
Flag Coverage Δ
cypress ?
javascript 62.95% <ø> (ø)
python 64.06% <ø> (-0.04%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/components/FaveStar.tsx 89.47% <ø> (-10.53%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/reducers/index.js 0.00% <0.00%> (-100.00%) ⬇️
...et-frontend/src/dashboard/containers/Dashboard.jsx 0.00% <0.00%> (-100.00%) ⬇️
... and 163 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 4666445...1c83d36. Read the comment docs.

@@ -31,6 +31,8 @@ interface FaveStarProps {

const StyledLink = styled.a`
font-size: ${({ theme }) => theme.typography.sizes.xl}px;
display: flex;
Copy link
Member

Choose a reason for hiding this comment

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

Hmm... obviously this works, so I'm tempted to approve, but I have to ask out of curiosity:

  1. Is there a reason to choose 'flex' over 'inline-block'?
  2. Since you are using flex, would flex-directon: column and justify-content: space-around negate the need to adjust the padding at all?

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, but posted a couple curiosity questions about the CSS approach.

@rusackas rusackas changed the title Align icon fix: Align icon Dec 1, 2020
Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

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

Screen Shot 2020-12-01 at 12 01 55 PM

Screen Shot 2020-12-01 at 12 03 46 PM

finally this is aligned 🥺 LGTM merge!

@rusackas rusackas merged commit 618a73d into apache:master Dec 2, 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/XS 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants