This commit is contained in:
parent
53558c4b46
commit
c74032d1d0
16 changed files with 702 additions and 44 deletions
27
src/components/LabelDotTemplate.vue
Normal file
27
src/components/LabelDotTemplate.vue
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<script setup>
|
||||
const props = defineProps({
|
||||
color: {
|
||||
type: String,
|
||||
default: '#EF2D56FF'
|
||||
},
|
||||
bg_color: {
|
||||
type: String,
|
||||
default: '#FFFFFF'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="color-dot" :style="{ borderColor: color, backgroundColor: bg_color }"></span>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.color-dot {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid; /* чтобы border-color работал */
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
45
src/components/LabelTemplate.vue
Normal file
45
src/components/LabelTemplate.vue
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<script setup>
|
||||
const props = defineProps({
|
||||
text: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: 'label'
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: '#EF2D56FF'
|
||||
},
|
||||
bg_color: {
|
||||
type: String,
|
||||
default: '#FFFFFF'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<label class="custom_label"
|
||||
:style="{color: color, backgroundColor: bg_color, borderColor: color}"
|
||||
>
|
||||
{{ text }}
|
||||
</label>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.custom_label {
|
||||
font-family: 'Heebo', sans-serif;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.025rem;
|
||||
font-style: normal;
|
||||
text-transform: uppercase;
|
||||
border-radius: 1.25rem;
|
||||
-webkit-border-radius: 1.25rem;
|
||||
-moz-border-radius: 1.25rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-style: solid;
|
||||
border-width: 0.125rem;
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
-box-shadow: none;
|
||||
}
|
||||
</style>
|
||||
7
src/components/ManageLabels.vue
Normal file
7
src/components/ManageLabels.vue
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<template>
|
||||
<n-button type="primary">
|
||||
<router-link :to="{ name: 'labels' }" class="router-link-button">
|
||||
Manage labels
|
||||
</router-link>
|
||||
</n-button>
|
||||
</template>
|
||||
|
|
@ -28,6 +28,7 @@ const authMenu = computed(() => {
|
|||
}
|
||||
|
||||
return [
|
||||
{ label: 'Labels', key: 'labels' },
|
||||
{ label: 'Personal', key: 'personal' },
|
||||
]
|
||||
})
|
||||
|
|
@ -137,7 +138,7 @@ const renderLabel = (option) => {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
min-width: 150px;
|
||||
min-width: 250px;
|
||||
padding-right: 16px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue