Nextcloud-vue: Datepicker to narrow when show-week-numbers

Created on 10 Apr 2020  路  13Comments  路  Source: nextcloud/nextcloud-vue

The datepicker overflows when week-numbers are shown. Set :show-week-numbers="true" in the documentation to reproduce:

Unbenannt

Happens in Calendar 2.0.3 now. @georgehrke @skjnldsv

1. to develop bug datepicker

Most helpful comment

Well, I cannot reproduce with show-week-numbers="true" on the documentation, what template code are you using?

It's show-week-number="true", not show-week-numbers="true"

All 13 comments

Aaah, ok, I fixed it for type="week", not show-week-numbers

I updated to 1.5.0 before releasing 2.0.3

Well, I cannot reproduce with show-week-numbers="true" on the documentation, what template code are you using?

Well, I cannot reproduce with show-week-numbers="true" on the documentation, what template code are you using?

It's show-week-number="true", not show-week-numbers="true"

DF83B60B-86FB-4DC4-8ED4-B5F0CF83C610

Still an issue in the latest version, i.e. the Calendar app.

The problem is this line https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/DatetimePicker/index.scss#L63 which doesn't take the week number column into account. But I don't know how to overwrite it, because there is no class indicating if the week numbers are shown. @skjnldsv Any idea? Maybe I am missing something.

I added a feature request to the datepicker library to have a class set when show-week-number is enabled: https://github.com/mengxiong10/vue2-datepicker/issues/600

Fix is in #1917. Adjustments to the datepicker library were not necessary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

korelstar picture korelstar  路  8Comments

rullzer picture rullzer  路  7Comments

korelstar picture korelstar  路  7Comments

ma12-co picture ma12-co  路  7Comments

skjnldsv picture skjnldsv  路  9Comments