-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Calendar (Tailwind): Width is calculated wrong #6093
Labels
Component: Tailwind
Tailwind specific issue
Milestone
Comments
vaelu
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Mar 6, 2024
melloware
added
Component: Tailwind
Tailwind specific issue
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Mar 6, 2024
cc @zawasp |
Is there any update on this? Would be cool if this would get fixed soon. |
still broken in |
PR is welcome from anyone who works with Tailwind and understands what needs to be done... |
gcko
added a commit
to gcko/primereact
that referenced
this issue
Sep 6, 2024
- Fix typos in tailwind style - Remove `groupContainer` and `group` styles. They are not needed - Fix panel styling - In Calendar.js: remove minWidth when in unstyled mode. Calling `DomHandler.alignOverlay` force sets `minWidth`, so we need to back it out. See [Line 348](https://github.com/primefaces/primereact/blob/master/components/lib/utils/DomHandler.js#L348)
melloware
pushed a commit
that referenced
this issue
Sep 7, 2024
- Fix typos in tailwind style - Remove `groupContainer` and `group` styles. They are not needed - Fix panel styling - In Calendar.js: remove minWidth when in unstyled mode. Calling `DomHandler.alignOverlay` force sets `minWidth`, so we need to back it out. See [Line 348](https://github.com/primefaces/primereact/blob/master/components/lib/utils/DomHandler.js#L348)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There were similar issues already (#5830, #5920), but it seems to me that it's still not fixed or there is a new bug.
We are using the Calendar component with unstyled mode and the Tailwind passthroughs provided by PrimeReact. However, the panel seems to calculate the width too big. When we remove the
min-w-class
, then the panel is too small.With min-w-full (like in the official docs):
Without min-w-full (ignore other stylings):
Reproducer
https://stackblitz.com/edit/ewd4me
PrimeReact version
10.5.1
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: