@burh/nuxt-core 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
v-show="isDropdownOpen"
|
|
35
35
|
class="filter__dropdown"
|
|
36
36
|
ref="dropdownContainer"
|
|
37
|
+
:style="`--filter-dropdown-width: ${dropdownWidth}px`"
|
|
37
38
|
>
|
|
38
39
|
<div class="filter__dropdown__content">
|
|
39
40
|
<slot name="dropdown-content" />
|
|
@@ -70,6 +71,10 @@ export default {
|
|
|
70
71
|
baseColor: {
|
|
71
72
|
type: String,
|
|
72
73
|
default: '#5865F2'
|
|
74
|
+
},
|
|
75
|
+
dropdownWidth: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: '350'
|
|
73
78
|
}
|
|
74
79
|
},
|
|
75
80
|
data() {
|
|
@@ -183,8 +188,10 @@ export default {
|
|
|
183
188
|
z-index: 100;
|
|
184
189
|
margin-bottom: 10px;
|
|
185
190
|
.filter__dropdown {
|
|
191
|
+
$width: var(--filter-dropdown-width);
|
|
192
|
+
|
|
186
193
|
position: absolute;
|
|
187
|
-
width:
|
|
194
|
+
width: $width;
|
|
188
195
|
left: calc(50% + (10px / 2));
|
|
189
196
|
transform: translateX(-50%);
|
|
190
197
|
margin-top: 10px;
|
|
@@ -41,8 +41,14 @@ export default {
|
|
|
41
41
|
let text = this.getNameInitials();
|
|
42
42
|
// let background = this.fallbackBackground;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
const url = new URL('https://api.dicebear.com/7.x/initials/svg');
|
|
45
|
+
|
|
46
|
+
url.searchParams.append('seed', text);
|
|
47
|
+
url.searchParams.append('backgroundColor', '8DA2B5');
|
|
48
|
+
url.searchParams.append('size', size);
|
|
49
|
+
url.searchParams.append('fontSize', '40');
|
|
50
|
+
|
|
51
|
+
return url.toString();
|
|
46
52
|
},
|
|
47
53
|
getImageFallback(img) {
|
|
48
54
|
img.target.src = this.getAvatarUrl();
|