@falcondev-oss/nuxt-layers-base 0.43.2 → 0.43.3
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.
|
@@ -43,20 +43,17 @@ export default defineSetupComponent(
|
|
|
43
43
|
// sections draw their own top/left border shifted by -1px, so the outer ones get clipped
|
|
44
44
|
<div
|
|
45
45
|
class={[
|
|
46
|
-
'ring-default bg-elevated flex flex-wrap
|
|
46
|
+
'ring-default bg-elevated flex flex-wrap overflow-hidden rounded-t-lg shadow-[inset_0_2px_3px_-2px_rgb(0_0_0/0.06),inset_2px_0_3px_-2px_rgb(0_0_0/0.06),inset_-2px_0_3px_-2px_rgb(0_0_0/0.06)] ring',
|
|
47
47
|
slots.default ? '-mb-2 pb-2' : 'rounded-b-lg',
|
|
48
48
|
]}
|
|
49
49
|
>
|
|
50
50
|
{leadingSections}
|
|
51
51
|
|
|
52
|
-
{/* every section hugs its content, so the spare space collects here instead of
|
|
53
|
-
stretching the last leading section */}
|
|
54
|
-
<div class="flex-1" />
|
|
55
|
-
|
|
56
52
|
{endSections.length > 0 ? (
|
|
57
53
|
// one flex item, so the end sections wrap onto their own line as a group
|
|
58
|
-
// instead of splitting up — the leading sections give way first
|
|
59
|
-
|
|
54
|
+
// instead of splitting up — the leading sections give way first;
|
|
55
|
+
// `ml-auto` eats the spare space, so leading sections stay left on every line
|
|
56
|
+
<div class="ml-auto flex flex-wrap justify-end">{endSections}</div>
|
|
60
57
|
) : null}
|
|
61
58
|
</div>
|
|
62
59
|
) : null}
|
|
@@ -27,7 +27,10 @@ export default defineSetupComponent(
|
|
|
27
27
|
<div
|
|
28
28
|
data-end={props.end || undefined}
|
|
29
29
|
class={cnMerge(
|
|
30
|
-
|
|
30
|
+
// no `flex-none`/`min-w-fit`: a section still hugs its content (grow 0) and still wraps onto
|
|
31
|
+
// its own ribbon line, but one too wide for the whole ribbon shrinks instead of
|
|
32
|
+
// overflowing, so its content can wrap
|
|
33
|
+
'border-default -mt-px -ml-px flex flex-col gap-1.5 border-l px-3 py-2',
|
|
31
34
|
// the row separator spans the full ribbon width (clipped by its overflow-hidden), so a
|
|
32
35
|
// partially filled wrapped line still gets an unbroken line above it
|
|
33
36
|
'before:border-default relative before:absolute before:inset-x-[-100vw] before:top-0 before:border-t',
|