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

Add unit to CSS zero-length variables #819

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Nov 28, 2024

Unitless values make CSS computations fail and return zero, which impacts ts-wrapper’s end padding if either the clear button or caret is missing.

This PR adds the same unit used when the variable is not zero.

Fixes #757

@MatTheCat MatTheCat changed the title Add unit to zero-length variables Add unit to CSS zero-length variables Nov 28, 2024
bestpractical-mirror pushed a commit to bestpractical/rt that referenced this pull request Dec 16, 2024
Without units, the CSS max function calculates a value of
0, which results in no right margin on dropdowns. This causes
the width on col-auto to overlap the value and the dropdown
caret.

This may be fixed in future tom-select, see PR:

orchidjs/tom-select#819
bestpractical-mirror pushed a commit to bestpractical/rt that referenced this pull request Dec 17, 2024
Without units, the CSS max function calculates a value of
0, which results in no right margin on dropdowns. This causes
the width on col-auto to overlap the value and the dropdown
caret.

This may be fixed in future tom-select, see PR:

orchidjs/tom-select#819
@nwalters512
Copy link
Contributor

Seems like the GitHub Actions upgrade to Ubuntu 24.04 broke CI :( that's independent of this PR. Let me get this fixed and then come back to merge this. Thanks for your patience!

@nwalters512 nwalters512 merged commit a9401bb into orchidjs:master Jan 28, 2025
3 checks passed
@MatTheCat MatTheCat deleted the ticket_757 branch January 28, 2025 18:34
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.

[Bug]: Caret overlaps with selected content
2 participants