-
Notifications
You must be signed in to change notification settings - Fork 95
fix(NcDateTimePicker): adjust input padding inline end #7208
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
Conversation
Signed-off-by: Raimund Schlüßler <raimund.schluessler+nextcloud@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler+nextcloud@mailbox.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please squash commits and add a clearable prop in any example
| } | ||
| .vue-date-time-picker--clearable :deep(.dp__input) { | ||
| padding-inline-end: var(--default-clickable-area); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be not just update the --dp-input-padding variable here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean like this?
| padding-inline-end: var(--default-clickable-area); | |
| --dp-input-padding: 6px var(--default-clickable-area) 6px 12px; |
This should also work, I don't have a preference here, honestly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but also if 6px/12px will change, we have to update in in both places. -inline-end is limiting changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My reasoning was just that the variables are public API but the class names could break someday.
☑️ Resolves
NcDateTimePickerinput field, so that less space is wasted if no clearable button is present.🖼️ Screenshots
🏁 Checklist
stable8for maintained Vue 2 version or not applicable