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

Allow wider dashboardHeader buttons #27844

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

iethree
Copy link
Contributor

@iethree iethree commented Jan 23, 2023

Description

We were setting a fixed width on dashboard header buttons, which caused any icons that were wider than they were tall to get clipped. This allows rectangular icons to fit properly (note, both the text card and click icons are affected).

Before After
Screen Shot 2023-01-23 at 3 18 53 PM Screen Shot 2023-01-23 at 3 25 34 PM

Other dashboard buttons still look fine

Screen Shot 2023-01-23 at 3 25 45 PM

@iethree iethree requested a review from a team January 23, 2023 22:28
@iethree iethree self-assigned this Jan 23, 2023
Copy link
Contributor

@npfitz npfitz left a comment

Choose a reason for hiding this comment

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

Change is localized to Dashboard buttons. Looks good to me.

@deploysentinel
Copy link

deploysentinel bot commented Jan 23, 2023

No failed tests 🎉

@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Base: 66.12% // Head: 66.12% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (e39ebed) compared to base (436846f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27844   +/-   ##
=======================================
  Coverage   66.12%   66.12%           
=======================================
  Files        3272     3272           
  Lines       94806    94806           
  Branches    12072    12069    -3     
=======================================
+ Hits        62689    62692    +3     
  Misses      27150    27150           
+ Partials     4967     4964    -3     
Flag Coverage Δ
back-end 85.32% <ø> (+<0.01%) ⬆️
front-end 48.38% <ø> (ø)

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

Impacted Files Coverage Δ
...se/dashboard/containers/DashboardHeader.styled.jsx 0.00% <ø> (ø)
src/metabase/models/card.clj 90.80% <0.00%> (+0.79%) ⬆️
src/metabase/driver/impl.clj 70.21% <0.00%> (+1.06%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@iethree iethree merged commit 295b838 into master Jan 24, 2023
@iethree iethree deleted the actions/fix-add-action-icon branch January 24, 2023 23:08
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.

None yet

2 participants