Skip to content

fix: set explicit width on custom time input example - #87

Open
balajis-qb wants to merge 1 commit into
mainfrom
fix/custom-time-input-example-width
Open

fix: set explicit width on custom time input example#87
balajis-qb wants to merge 1 commit into
mainfrom
fix/custom-time-input-example-width

Conversation

@balajis-qb

Copy link
Copy Markdown
Collaborator

Description

Problem
The "Custom Time Input" docs example (docs-site/src/examples/ts/customTimeInput.tsx) leaves the custom <input> without an explicit width. It falls back to the browser's default text-input width, leaving a large empty gap next to the short HH:MM value.

Changes
Added an explicit width: 70px to the input's inline style so it's sized appropriately for the time value instead of relying on the browser default.

Screenshots

Before
image

After
image

To reviewers

Small, isolated docs-site example fix — no changes to library source or public API.

Contribution checklist

  • I have followed the contributing guidelines.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

The docs "Custom Time Input" example left the input element without
an explicit width, so it fell back to the browser's default text
input width, leaving a large empty gap next to the short HH:MM value.
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.

1 participant