Add deferring task's due dates directly from the overview (#199)
Make the defer popup responsible Add buttons to defer by 1/3/7 days Add updating due date Add update method Add component to defer the due date from the task overview Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/199
This commit is contained in:
@ -191,4 +191,54 @@
|
||||
.spinner.is-loading:after {
|
||||
margin-left: calc(40% - 1em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.defer-task {
|
||||
$defer-task-max-width: 350px;
|
||||
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
max-width: $defer-task-max-width;
|
||||
border-radius: $radius;
|
||||
border: 1px solid $grey-lighter;
|
||||
padding: 1rem;
|
||||
margin: 1rem;
|
||||
background: $white;
|
||||
color: $text;
|
||||
cursor: default;
|
||||
z-index: 10;
|
||||
|
||||
input.input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.flatpickr-calendar {
|
||||
margin: 0 auto;
|
||||
box-shadow: none;
|
||||
|
||||
span {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
.defer-days {
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
margin: .5rem 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: ($defer-task-max-width + 100px)) { // 100px is roughly the size the pane is pulled to the right
|
||||
left: .5rem;
|
||||
right: .5rem;
|
||||
max-width: 100%;
|
||||
width: calc(100vw - 1rem - 2rem);
|
||||
|
||||
.flatpickr-calendar {
|
||||
max-width: 100%;
|
||||
|
||||
.flatpickr-innerContainer {
|
||||
overflow: scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user