grav-svelte 0.0.68 → 0.0.69
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.
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
$: alignStyle = header.align === 'left' ? 'margin-right: auto;' :
|
|
9
9
|
header.align === 'right' ? 'margin-left: auto;' : '';
|
|
10
|
+
|
|
11
|
+
$: hasText1 = header.textField1 && item[header.textField1];
|
|
12
|
+
$: hasText2 = header.textField2 && item[header.textField2];
|
|
13
|
+
$: isSingleState = (hasText1 && !hasText2) || (!hasText1 && hasText2);
|
|
10
14
|
</script>
|
|
11
15
|
|
|
12
16
|
<div style="display: inline-flex; {alignStyle}">
|
|
@@ -19,13 +23,13 @@
|
|
|
19
23
|
}
|
|
20
24
|
}}
|
|
21
25
|
>
|
|
22
|
-
{#if
|
|
23
|
-
<div class="dual-text-1 {item[header.colorField1 ?? ''] ?? ''}">
|
|
26
|
+
{#if hasText1}
|
|
27
|
+
<div class="dual-text-1 {item[header.colorField1 ?? ''] ?? ''} {isSingleState ? 'rounded-bottom' : ''}">
|
|
24
28
|
{item[header.textField1]}
|
|
25
29
|
</div>
|
|
26
30
|
{/if}
|
|
27
|
-
{#if
|
|
28
|
-
<div class="dual-text-2 {item[header.colorField2 ?? ''] ?? ''}">
|
|
31
|
+
{#if hasText2}
|
|
32
|
+
<div class="dual-text-2 {item[header.colorField2 ?? ''] ?? ''} {isSingleState ? 'rounded-bottom' : ''}">
|
|
29
33
|
{item[header.textField2]}
|
|
30
34
|
</div>
|
|
31
35
|
{/if}
|
|
@@ -590,6 +590,11 @@
|
|
|
590
590
|
border-bottom-right-radius: var(--grav-border-radius-md);
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
+
.rounded-bottom {
|
|
594
|
+
border-bottom-left-radius: var(--grav-border-radius-md);
|
|
595
|
+
border-bottom-right-radius: var(--grav-border-radius-md);
|
|
596
|
+
}
|
|
597
|
+
|
|
593
598
|
.dual-text-separator {
|
|
594
599
|
color: var(--grav-crud-color-neutral);
|
|
595
600
|
opacity: 0.5;
|