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

Table: issues with font size #3389

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Table: issues with font size #3389

merged 1 commit into from
Jan 10, 2025

Conversation

Kiarokh
Copy link
Contributor

@Kiarokh Kiarokh commented Jan 7, 2025

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.

  1. Clone Dev-Features database, and
  2. Open your local dev on a iPhone, use Browser stack for instance
  3. go to History table
  4. Make a filter using the begins with, and typing %limebb in the input field and pressing ENTER.
  5. This will filter the table in a way that you see all those cells with gigantic font size.
  6. Make sure other tables look fine, specially the ones with custom components in them

Review:

  • Commits are atomic
  • Commits have the correct type for the changes made
  • Commits with breaking changes are marked as such

Browsers tested:

(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)

Windows:

  • Chrome
  • Edge
  • Firefox

Linux:

  • Chrome
  • Firefox

macOS:

  • Chrome
  • Firefox
  • Safari

Mobile:

  • Chrome on Android
  • iOS

@Kiarokh Kiarokh force-pushed the tabulator-row-text-size-issues branch from 4013255 to b274e31 Compare January 7, 2025 13:06
@Kiarokh Kiarokh enabled auto-merge (rebase) January 7, 2025 13:06
Copy link

github-actions bot commented Jan 7, 2025

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;
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙈

@Kiarokh Kiarokh force-pushed the tabulator-row-text-size-issues branch from 1e01d17 to c1c7232 Compare January 8, 2025 09:02
@@ -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;
Copy link
Contributor Author

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.
```

@Kiarokh Kiarokh force-pushed the tabulator-row-text-size-issues branch from c1c7232 to eb46a99 Compare January 9, 2025 12:01
@Kiarokh Kiarokh changed the title Table: issues with row height and font size Table: issues with ~~row height and~~ font size Jan 9, 2025
@Kiarokh Kiarokh changed the title Table: issues with ~~row height and~~ font size Table: issues with font size Jan 9, 2025
@LucyChyzhova
Copy link
Contributor

I tested, only what I could find is limel-chip is rendered in a bit weird way. too close to bottom.

Screenshot 2025-01-09 at 19 00 05

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.
@Kiarokh Kiarokh force-pushed the tabulator-row-text-size-issues branch from eb46a99 to 6b5aa05 Compare January 10, 2025 12:42
@Kiarokh Kiarokh merged commit 795d73a into main Jan 10, 2025
12 checks passed
@Kiarokh Kiarokh deleted the tabulator-row-text-size-issues branch January 10, 2025 12:45
@lime-opensource
Copy link
Collaborator

🎉 This PR is included in version 37.79.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants