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

ui input style width #916

Closed
Thuytran79 opened this issue Jun 18, 2024 · 1 comment
Closed

ui input style width #916

Thuytran79 opened this issue Jun 18, 2024 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Thuytran79
Copy link

I can't fix input width.
I try to used input-class-name to the width fit content but it's not working.

<VueDatePicker v-model="monthModeValue" position="center" locale="ja" format="yyyy年MM月" auto-apply :clearable="false" :enable-time-picker="false" @update:modelValue="emitSelectedDate" input-class-name="dp-custom-input" month-picker/>

.dp-custom-input { border: none; width: 150px; min-width: fit-content; font-size: larger; font-weight: bold; &:focus { outline: none; border: none; box-shadow: none; } }

image

@Thuytran79 Thuytran79 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Jun 18, 2024
@Jasenkoo
Copy link
Contributor

You can just target the class directly, or use a slot input.

The input-class-name prop is deprecated.

@Jasenkoo Jasenkoo added wontfix This will not be worked on and removed bug Something isn't working awaiting triage The issue is not reviewed by the maintainers labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants