Skip to content

Commit 0013c3b

Browse files
committed
fix(QDate): today button on landscape view looks stretched out
1 parent 416dddf commit 0013c3b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

ui/dev/src/pages/form/date-part2-multiple-range.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
make a new *.vue file here or in another folder under /dev/components.
1010
-->
1111
<div class="row q-gutter-md q-pb-md">
12-
<q-btn label="Add 2020/09/05" @click="add" />
1312
<q-btn label="Null model" @click="nullify" />
1413
<q-btn label="Reset" @click="reset" />
1514
</div>
@@ -89,15 +88,6 @@ export default {
8988
]
9089
},
9190
92-
add () {
93-
if (Array.isArray(this.days)) {
94-
this.days.push('2020/09/05')
95-
}
96-
else {
97-
this.days = [ '2020/09/05' ]
98-
}
99-
},
100-
10191
onInput (value, reason, details) {
10292
console.log('@input:', value, reason, details)
10393
},

ui/src/components/date/QDate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ export default Vue.extend({
852852
]),
853853

854854
this.todayBtn === true ? h(QBtn, {
855-
staticClass: 'q-date__header-today',
855+
staticClass: 'q-date__header-today self-start',
856856
props: {
857857
icon: this.$q.iconSet.datetime.today,
858858
flat: true,

0 commit comments

Comments
 (0)