1
0

Fix task icons on kanban if there were multiple different ones

This commit is contained in:
kolaente
2021-01-10 18:27:18 +01:00
parent c44a1af072
commit e87642026b
3 changed files with 64 additions and 70 deletions

View File

@ -1,16 +1,19 @@
<template>
<span
:class="{'not-so-high': priority === priorities.HIGH, 'high-priority': priority >= priorities.HIGH}"
class="priority-label"
v-if="showAll || priority >= priorities.HIGH">
<span class="icon" v-if="priority >= priorities.HIGH">
<icon icon="exclamation"/>
</span>
<template v-if="priority === priorities.UNSET">Unset</template>
<template v-if="priority === priorities.LOW">Low</template>
<template v-if="priority === priorities.MEDIUM">Medium</template>
<template v-if="priority === priorities.HIGH">High</template>
<template v-if="priority === priorities.URGENT">Urgent</template>
<template v-if="priority === priorities.DO_NOW">DO NOW</template>
<span>
<template v-if="priority === priorities.UNSET">Unset</template>
<template v-if="priority === priorities.LOW">Low</template>
<template v-if="priority === priorities.MEDIUM">Medium</template>
<template v-if="priority === priorities.HIGH">High</template>
<template v-if="priority === priorities.URGENT">Urgent</template>
<template v-if="priority === priorities.DO_NOW">DO NOW</template>
</span>
<span class="icon" v-if="priority === priorities.DO_NOW">
<icon icon="exclamation"/>
</span>
@ -40,9 +43,14 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import '../../../styles/theme/variables';
.priority-label {
display: flex;
align-items: center;
}
span.high-priority {
color: $red;
width: auto !important; // To override the width set in tasks