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

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>
<div class="footer">
<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
v-if="task.assignees.length > 0"
:assignees="task.assignees"
@ -242,7 +242,7 @@ $task-background: var(--white);
.priority-label {
font-size: .75rem;
height: 2rem;
padding: 0 .5rem 0 .25rem;
.icon {
height: 1rem;

View File

@ -17,7 +17,6 @@
:class="{ 'done': task.done, 'show-project': showProject && project}"
class="tasktext"
>
<priority-label :priority="task.priority" :done="task.done"/>
<span>
<router-link
v-if="showProject && typeof project !== 'undefined'"
@ -33,6 +32,8 @@
:color="getHexColor(task.hexColor)"
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 -->
<span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'">

View File

@ -1,7 +1,5 @@
<template>
<div class="task">
<priority-label :priority="task.priority" :done="task.done"/>
<span>
<span
v-if="showProject && typeof project !== 'undefined'"
@ -18,6 +16,8 @@
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 -->
<span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'">
<template v-for="(pt, i) in task.relatedTasks.parenttask">
@ -56,7 +56,6 @@
</time>
</span>
<span>
<span class="project-task-icon" v-if="task.attachments.length > 0">
<icon icon="paperclip"/>