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(dashboards): Left alignment for edit access in table view #82858

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

nikkikapadia
Copy link
Member

Before rolling out I wanted to fix this small alignment issue that Vasudha brought up. We wanted the access column to have the same alignment as the rest of the columns. Before and after below :)

Before After
image image

(access column is properly left aligned)

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 3, 2025
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #82858      +/-   ##
==========================================
- Coverage   87.50%   87.50%   -0.01%     
==========================================
  Files        9407     9407              
  Lines      536681   536679       -2     
  Branches    21045    21045              
==========================================
- Hits       469627   469625       -2     
  Misses      66686    66686              
  Partials      368      368              

@nikkikapadia nikkikapadia marked this pull request as ready for review January 3, 2025 16:47
@nikkikapadia nikkikapadia requested a review from a team as a code owner January 3, 2025 16:47
@@ -339,10 +346,11 @@ const StyledFeatureBadge = styled(FeatureBadge)`
margin-right: 6px;
`;

const StyledBadge = styled(Badge)<{size: number}>`
const StyledBadge = styled(Badge)<{listonly: string; size: number}>`
Copy link
Member

Choose a reason for hiding this comment

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

I think you can make listonly a boolean? Also makes the ternary condition on lines 339 and 340 easier to use and you won't have to call toString

Copy link
Member Author

Choose a reason for hiding this comment

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

i did that initially and it was giving me some really dumb errors so just changed it to this 😞
image

@nikkikapadia nikkikapadia merged commit 6acda51 into master Jan 3, 2025
43 checks passed
@nikkikapadia nikkikapadia deleted the nikki/fix/dashboards-table-view-access-padding branch January 3, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants