@swiftwc/ui 0.0.0-dev.76 → 0.0.0-dev.78
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.
|
@@ -45,7 +45,7 @@ export class ImageView extends HTMLElement {
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const tokens = [`ph${weight ? `-${weight}` : ''}`, `ph-${icon}`];
|
|
48
|
-
const container = this.querySelector(':scope>:not([slot])') ?? this.appendChild(
|
|
48
|
+
const container = this.querySelector(':scope>:not([slot])') ?? this.appendChild($(`<i style="line-height: 1"></i>`, '>1'));
|
|
49
49
|
if ('1' !== container.style.getPropertyValue('line-height'))
|
|
50
50
|
container.style.setProperty('line-height', '1');
|
|
51
51
|
for (const token of container.classList)
|
|
@@ -193,7 +193,7 @@ export class ScrollView extends HTMLElement {
|
|
|
193
193
|
// this.querySelector(':scope>[slot=top-bar-principal]') ?? this.appendChild($(`<v-stack spacing="0" alignment="fill" slot="top-bar-principal">${titleTemplate}${subtitleTemplate}</v-stack>`, '>1'))
|
|
194
194
|
// renderLabel(':scope>label-view:nth-child(1)', titleTemplate, vStack, title)
|
|
195
195
|
// renderLabel(':scope>label-view:nth-child(2)', subtitleTemplate, vStack, subtitle)
|
|
196
|
-
const container = this.querySelector(':scope>[slot=top-bar-principal]') ?? this.appendChild(
|
|
196
|
+
const container = this.querySelector(':scope>[slot=top-bar-principal]') ?? this.appendChild($(`<v-stack spacing="0" alignment="fill" slot="top-bar-principal"></v-stack>`, '>1'));
|
|
197
197
|
render(html `
|
|
198
198
|
${title ? html `<label-view line-limit="1" truncation-mode="tail" font="headline"><span>${title}</span></label-view>` : null}
|
|
199
199
|
${subtitle ? html `<label-view line-limit="1" truncation-mode="tail" foreground="secondary" font="callout"><span>${subtitle}</span></label-view>` : null}
|
package/generated/css/index.css
CHANGED
package/package.json
CHANGED
|
@@ -32,11 +32,13 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
> :not([slot]) {
|
|
35
|
-
|
|
35
|
+
:where(&) {
|
|
36
|
+
--label-image-size: 5;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
--label-gap: 1;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
// --label-font: title3;
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
&:not(:has(> [slot='description'])) {
|