fix(task): priority label sizing and positioning in different environments
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kolaente 2023-09-06 15:58:52 +02:00
parent beb016400e
commit 3fec92283b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@
</progress> </progress>
<div class="footer"> <div class="footer">
<labels :labels="task.labels"/> <labels :labels="task.labels"/>
<priority-label :priority="task.priority" :done="task.done"/> <priority-label :priority="task.priority" :done="task.done" class="is-inline-flex is-align-items-center"/>
<assignee-list <assignee-list
v-if="task.assignees.length > 0" v-if="task.assignees.length > 0"
:assignees="task.assignees" :assignees="task.assignees"
@ -242,7 +242,7 @@ $task-background: var(--white);
.priority-label { .priority-label {
font-size: .75rem; font-size: .75rem;
height: 2rem; padding: 0 .5rem 0 .25rem;
.icon { .icon {
height: 1rem; height: 1rem;

View File

@ -17,7 +17,6 @@
:class="{ 'done': task.done, 'show-project': showProject && project}" :class="{ 'done': task.done, 'show-project': showProject && project}"
class="tasktext" class="tasktext"
> >
<priority-label :priority="task.priority" :done="task.done"/>
<span> <span>
<router-link <router-link
v-if="showProject && typeof project !== 'undefined'" v-if="showProject && typeof project !== 'undefined'"
@ -33,6 +32,8 @@
:color="getHexColor(task.hexColor)" :color="getHexColor(task.hexColor)"
class="mr-1" class="mr-1"
/> />
<priority-label :priority="task.priority" :done="task.done"/>
<!-- Show any parent tasks to make it clear this task is a sub task of something --> <!-- Show any parent tasks to make it clear this task is a sub task of something -->
<span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'"> <span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'">

View File

@ -1,7 +1,5 @@
<template> <template>
<div class="task"> <div class="task">
<priority-label :priority="task.priority" :done="task.done"/>
<span> <span>
<span <span
v-if="showProject && typeof project !== 'undefined'" v-if="showProject && typeof project !== 'undefined'"
@ -18,6 +16,8 @@
class="mr-1" class="mr-1"
/> />
<priority-label :priority="task.priority" :done="task.done"/>
<!-- Show any parent tasks to make it clear this task is a sub task of something --> <!-- Show any parent tasks to make it clear this task is a sub task of something -->
<span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'"> <span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'">
<template v-for="(pt, i) in task.relatedTasks.parenttask"> <template v-for="(pt, i) in task.relatedTasks.parenttask">
@ -56,7 +56,6 @@
</time> </time>
</span> </span>
<span> <span>
<span class="project-task-icon" v-if="task.attachments.length > 0"> <span class="project-task-icon" v-if="task.attachments.length > 0">
<icon icon="paperclip"/> <icon icon="paperclip"/>