@bagelink/vue 1.15.108 → 1.15.112
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/package.json
CHANGED
package/src/components/Badge.vue
CHANGED
|
@@ -41,6 +41,11 @@ const props = defineProps<{
|
|
|
41
41
|
glass?: boolean
|
|
42
42
|
/** Leading status dot in the theme color (e.g. ● Live, ● Active). */
|
|
43
43
|
dot?: boolean
|
|
44
|
+
/** Drop the default trailing margin (margin-inline-end: 0.25rem). That margin
|
|
45
|
+
is meant to space adjacent inline badges; when a badge sits ALONE (e.g.
|
|
46
|
+
right-aligned in a column, or as the only pill in a cell) the margin pushes
|
|
47
|
+
it off the edge and it reads as misaligned. Set `flush` in that case. */
|
|
48
|
+
flush?: boolean
|
|
44
49
|
/** @deprecated Use `outline` */
|
|
45
50
|
border?: boolean
|
|
46
51
|
loading?: boolean
|
|
@@ -122,6 +127,7 @@ const computedClasses = computed(() => {
|
|
|
122
127
|
'm_pillLarge': computedMobileSize.value === 'lg',
|
|
123
128
|
'm_pillMd': computedMobileSize.value === 'md',
|
|
124
129
|
'm_pillSmall': computedMobileSize.value === 'sm',
|
|
130
|
+
'bgl_pill-flush': props.flush,
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
// Add the pair class
|
|
@@ -245,6 +251,11 @@ vertical-align: middle;
|
|
|
245
251
|
border-radius: 1000px;
|
|
246
252
|
}
|
|
247
253
|
|
|
254
|
+
/* Flush: drop the trailing spacing margin so a lone badge aligns to its edge. */
|
|
255
|
+
.bgl_pill-flush {
|
|
256
|
+
margin-inline-end: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
248
259
|
/* Glass: frosted translucent badge for photos / gradients / dark heroes.
|
|
249
260
|
Defaults to light-on-dark; flip via --bgl-glass-bg / --bgl-glass-color. */
|
|
250
261
|
.bgl_glassPill {
|