UX: improves date-time-input on mobile (#9291)

This commit is contained in:
Joffrey JAFFEUX 2020-03-27 13:29:58 +01:00 committed by GitHub
parent e6e6d20912
commit 1b09a0cd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -32,6 +32,7 @@ export default Component.extend({
onChangeDate(date) {
if (this.onChange) {
date = new Date(this.date);
const year = date.getFullYear();
const month = date.getMonth();
const day = date.getDate();

View File

@ -1,4 +1,7 @@
.d-date-input {
display: flex;
flex: 1;
.date-picker {
margin: 0;
text-align: left;

View File

@ -2,14 +2,16 @@
display: flex;
align-items: center;
border: 1px solid $primary-low;
width: 258px;
box-sizing: border-box;
position: relative;
flex: 1;
justify-content: space-between;
.date-picker,
.fields {
border: 0;
}
.d-date-time-input {
margin-left: auto;
}
}