Skip to content

fix: Templates table columns width #3731

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

Merged
merged 1 commit into from
Aug 29, 2022
Merged

fix: Templates table columns width #3731

merged 1 commit into from
Aug 29, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

Fixes #3639

Before fix:
image

After fix:
Screen Shot 2022-08-29 at 13 08 13

@BrunoQuaresma BrunoQuaresma self-assigned this Aug 29, 2022
@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner August 29, 2022 16:10
@BrunoQuaresma BrunoQuaresma requested review from presleyp and removed request for a team August 29, 2022 16:10
<TableCell>{Language.lastUpdatedLabel}</TableCell>
<TableCell>{Language.createdByLabel}</TableCell>
<TableCell width="50%">{Language.nameLabel}</TableCell>
<TableCell width="16%">{Language.usedByLabel}</TableCell>
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks great, but I wonder if there's a better way than hard-coding a percentage.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've always used hard-coded widths with percentages when working with tables but it is true this doesn't look good. Any suggestions?

Copy link
Contributor

Choose a reason for hiding this comment

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

The MUI docs didn't give me any good ideas (you can set a cell to "small" but the problem was they were too small, even though the default is "medium", so that wouldn't help), so I think this is fine as long as it looks good in different screen sizes!

@BrunoQuaresma BrunoQuaresma merged commit 62f686c into main Aug 29, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-3639 branch August 29, 2022 17:49
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.

Uneven line wrapping for template descriptions
3 participants