feat(task wizard): styling

This commit is contained in:
kolaente 2022-09-22 18:59:21 +02:00
parent 070b629fb6
commit 8c61d99393
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 14 additions and 4 deletions

View File

@ -30,16 +30,16 @@
:preview-is-default="false"
class="m-4"
/>
<div class="px-4 pb-4">
<div class="px-4 pb-4 task-attributes">
<Datepicker
v-model="newTask.dueDate"
v-slot="{ date, openPopup }"
>
<XButton variant="secondary" @click.stop="openPopup()">
<XButton variant="secondary" @click.stop="openPopup()" class="datepicker-button">
{{ date ? formatDateShort(date) : t('task.attributes.dueDate') }}
</XButton>
</Datepicker>
<div>
<div class="is-flex pl-2">
<span
v-for="label in realLabels"
:style="{'background': label.hexColor, 'color': label.textColor}"
@ -144,7 +144,7 @@ async function create() {
await store.dispatch('tasks/addLabelsToTask', {
task,
parsedLabels: labels,
parsedLabels: labels.value,
})
return router.push({name: 'task.detail', params: {id: task.id}})
@ -165,4 +165,14 @@ async function create() {
width: 100%;
text-align: left;
}
.datepicker-button {
white-space: nowrap;
}
.task-attributes {
display: flex;
align-items: center;
overflow-y: auto;
}
</style>