-
Notifications
You must be signed in to change notification settings - Fork 16
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
Table: issues with font size #3389
Conversation
4013255
to
b274e31
Compare
Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-3389/ |
@@ -66,7 +66,7 @@ | |||
|
|||
limel-checkbox { | |||
transition: opacity 0.2s ease; | |||
align-self: center; | |||
// align-self: center; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us remove this if not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙈
1e01d17
to
c1c7232
Compare
src/components/table/table.scss
Outdated
@@ -99,7 +99,7 @@ $table--limel-table--row-selector: 1; | |||
|
|||
.tabulator-row { | |||
transition: background-color 0.2s ease; | |||
min-height: 2.25rem; | |||
height: 2.25rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will drop this commit, since it's not needed for this PR, and I am worried that it creates more mess in future. It's a little bit of a breaking change.
For the records, I just keep this note here 👇 :
fix(table): avoid row height change
Sometimes, re-renderings after the initial render, or
changes within components in the table cells, or
clicking on rows, or size of the components in the
table cells would cause a resize on all rows in a table.
This always resulted in reduced quality of the experience.
This fix might break some carelessly designed UIs of
custom components used in table views.
But since we have so many issues with this,
and fixing other issues relies on having a fixed row height,
consumers have to adapt.
```
c1c7232
to
eb46a99
Compare
In some scenarios, a table cell could suddenly get a really large font-size. Seemingly this happened when for contents with many characters. However, the issue was not the `font-size` property itself. It was likely due to some Safari-related bug, which had to do with `display: inline-flex` of table cells, and or combination of it with some other styles in Tabulator. Usage of `inline-flex` also caused text not to be truncated in any cells. Both problems are fixed now.
eb46a99
to
6b5aa05
Compare
🎉 This PR is included in version 37.79.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix https://github.com/Lundalogik/crm-feature/issues/4028
💡 How to test this PR
To see this issue, you need to find the right table that makes these random font-sizes.
%limebb
in the input field and pressing ENTER.Review:
Browsers tested:
(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)
Windows:
Linux:
macOS:
Mobile: