@dumiflex/wp-kit 0.15.0 → 0.15.1
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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/PostCard.vue +17 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.15.1](https://github.com/DumiFlex/wp-kit/compare/v0.15.0...v0.15.1) (2026-11-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **PostCard:** show sample values as one line of text ([#115](https://github.com/DumiFlex/wp-kit/issues/115)) ([ced88a1](https://github.com/DumiFlex/wp-kit/commit/ced88a1e4c54ac6c20859b9d858f30f79a4e9edf))
|
|
9
|
+
|
|
3
10
|
## [0.15.0](https://github.com/DumiFlex/wp-kit/compare/v0.14.0...v0.15.0) (2026-11-09)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/src/PostCard.vue
CHANGED
|
@@ -86,9 +86,13 @@ const samples = computed(() => (props.post.samples ?? []).filter((v) => v.trim()
|
|
|
86
86
|
:names="post.bundleModules.names"
|
|
87
87
|
/>
|
|
88
88
|
|
|
89
|
-
<
|
|
90
|
-
<
|
|
91
|
-
|
|
89
|
+
<p v-if="samples.length" class="wp-post-card__samples" :title="samples.join(' · ')">
|
|
90
|
+
<span class="wp-post-card__samples-k">Rolls</span>
|
|
91
|
+
<template v-for="(v, i) in samples" :key="i">
|
|
92
|
+
<span v-if="i" class="wp-post-card__samples-sep" aria-hidden="true"> · </span>
|
|
93
|
+
<span class="wp-post-card__sample">{{ v }}</span>
|
|
94
|
+
</template>
|
|
95
|
+
</p>
|
|
92
96
|
|
|
93
97
|
<p v-if="post.description" class="wp-post-card__desc">{{ post.description }}</p>
|
|
94
98
|
|
|
@@ -193,27 +197,22 @@ const samples = computed(() => (props.post.samples ?? []).filter((v) => v.trim()
|
|
|
193
197
|
-webkit-box-orient: vertical;
|
|
194
198
|
}
|
|
195
199
|
.wp-post-card__samples {
|
|
196
|
-
display: flex;
|
|
197
|
-
flex-wrap: wrap;
|
|
198
|
-
gap: 5px;
|
|
199
200
|
margin: 0;
|
|
200
|
-
padding: 0;
|
|
201
|
-
list-style: none;
|
|
202
|
-
}
|
|
203
|
-
.wp-post-card__sample {
|
|
204
|
-
max-width: 100%;
|
|
205
201
|
overflow: hidden;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
font-size: 12px;
|
|
209
|
-
line-height: 1.4;
|
|
202
|
+
font-size: 13px;
|
|
203
|
+
line-height: 1.5;
|
|
210
204
|
color: var(--wp-text);
|
|
211
205
|
white-space: nowrap;
|
|
212
206
|
text-overflow: ellipsis;
|
|
213
|
-
background: color-mix(in oklab, var(--post-card-c) 12%, var(--wp-bg-2));
|
|
214
|
-
border: 1px solid color-mix(in oklab, var(--post-card-c) 28%, var(--wp-border));
|
|
215
|
-
border-radius: min(6px, var(--wp-radius-cap, 999px));
|
|
216
207
|
}
|
|
208
|
+
.wp-post-card__samples-k {
|
|
209
|
+
margin-right: 8px;
|
|
210
|
+
font-size: 11px;
|
|
211
|
+
letter-spacing: 0.04em;
|
|
212
|
+
text-transform: uppercase;
|
|
213
|
+
color: var(--wp-text-muted);
|
|
214
|
+
}
|
|
215
|
+
.wp-post-card__samples-sep { color: var(--wp-text-muted); }
|
|
217
216
|
.wp-post-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
218
217
|
.wp-post-card__tags .wp-chip { padding: 2px 8px; font-size: 11px; }
|
|
219
218
|
.wp-post-card__foot {
|