Skip to content

Commit

Permalink
Merge pull request #1880 from nextcloud/fix/noid/datepicker-cropped
Browse files Browse the repository at this point in the history
Allow to append datepicker to body
  • Loading branch information
ChristophWurst authored Apr 30, 2021
2 parents c5d79e5 + be3d07f commit 6c8438c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
7 changes: 6 additions & 1 deletion src/components/DatetimePicker/DatetimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default {
:formatter="formatter"
:type="type"
:value="value"
:append-to-body="false"
:append-to-body="appendToBody"
v-bind="$attrs"
v-on="$listeners"
@select-year="handleSelectYear"
Expand Down Expand Up @@ -153,6 +153,11 @@ export default {
return new Date()
},
},

appendToBody: {
type: Boolean,
default: false,
},
},

methods: {
Expand Down
22 changes: 13 additions & 9 deletions src/components/DatetimePicker/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,22 @@ $cell_height: 32px;
color: var(--color-text-lighter);
}
}
}

// Datepicker popup wrapper
.mx-datepicker-main {
color: var(--color-main-text);
border: 1px solid var(--color-border);
background-color: var(--color-main-background);
font-family: var(--font-face) !important;
line-height: 1.5;
// Datepicker popup wrapper
.mx-datepicker-main {
color: var(--color-main-text);
border: 1px solid var(--color-border);
background-color: var(--color-main-background);
font-family: var(--font-face) !important;
line-height: 1.5;

svg {
fill: var(--color-main-text);
}

.mx-datepicker-popup {
z-index: 1000;
&.mx-datepicker-popup {
z-index: 2000;
box-shadow: none;

.mx-datepicker-sidebar + .mx-datepicker-content {
Expand Down

0 comments on commit 6c8438c

Please sign in to comment.