5dcb1dd449
Some checks failed
continuous-integration/drone/push Build is failing
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: #874 Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
34 lines
467 B
Vue
34 lines
467 B
Vue
<template>
|
|
<div class="label-wrapper">
|
|
<span
|
|
:key="label.id"
|
|
:style="{'background': label.hexColor, 'color': label.textColor}"
|
|
class="tag"
|
|
v-for="label in labels">
|
|
<span>{{ label.title }}</span>
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'labels',
|
|
props: {
|
|
labels: {
|
|
required: true,
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.label-wrapper {
|
|
display: inline;
|
|
}
|
|
|
|
.tag {
|
|
& + & {
|
|
margin-left: 0.5rem;
|
|
}
|
|
}
|
|
</style> |