Skip to content

Conversation

Han5991
Copy link
Contributor

@Han5991 Han5991 commented Oct 5, 2025

fixes #8312


스크린샷 2025-10-05 오후 9 08 49

Changes

Input Field (AmPmInput.tsx)

  • Added dynamic size attribute based on the current value length (displayValue.length + 1)
  • The input field now automatically adjusts its width to fit the actual AM/PM label text

Dropdown Controls (TimePicker.module.css)

  • .control: Changed from fixed width: 2.5em to min-width: 2.5em + width: max-content
  • Allows AM/PM controls in dropdown to expand based on label length while maintaining minimum size for number controls
  • .field[data-am-pm]: Changed from fixed width: calc(3ch + 0.3em) to width: auto
  • Allows the input field to respect the dynamic size attribute

… input and dropdown (mantinedev#8312)

Fixed an issue where custom AM/PM labels would be cut off both in the input field and dropdown list. The fix uses dynamic sizing for the AM/PM input field based on label length and allows dropdown controls to expand to fit their content.
@rtivital rtivital merged commit 672a28c into mantinedev:master Oct 8, 2025
1 check passed
@rtivital
Copy link
Member

rtivital commented Oct 8, 2025

Thanks!

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.

TimePicker cuts off custom amPmLabels in input and dropdown

2 participants