blob: 050afffdddc63117bd2cfec433d68a8e47bb174d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<template>
<span class="activefilter">
<slot></slot>
<button
@click="onRemoveActiveFilter"
type="button"
:title="$gettext('Filter \'%{name}\' entfernen', { name }, true)"
>
<StudipIcon class="text-bottom" shape="decline" role="presentation" alt="" />
</button>
</span>
</template>
<script>
export default {
emits: ['remove'],
props: {
name: {
type: String,
required: true,
},
},
methods: {
onRemoveActiveFilter() {
this.$emit('remove');
},
},
};
</script>
<style scoped>
.activefilter {
align-items: center;
background-color: var(--content-color-20);
border: solid thin var(--black);
display: flex;
gap: 4px;
justify-content: space-between;
margin: 3px;
padding: 5px;
padding-inline-end: 0;
white-space: nowrap;
}
button {
align-items: center;
background-color: var(--content-color-20);
border: none;
display: flex;
justify-content: center;
margin-inline: 0;
padding-inline-start: 4px;
}
</style>
|