fix: heading overflow

This commit is contained in:
Arman committed 2022-11-09 15:36:56 +01:00
1 parent 8621823643
commit 3fc0e2bb25
4 files changed
+20 -19

No files matched your search

+14 -14
View File
@@ -9,8 +9,8 @@
"version": "0.0.1",
"dependencies": {
"@aw-labs/appwrite-console": "^10.0.0",
"@aw-labs/icons": "0.0.0-69",
"@aw-labs/ui": "0.0.0-69",
"@aw-labs/icons": "0.0.0-71",
"@aw-labs/ui": "0.0.0-71",
"@popperjs/core": "^2.11.6",
"echarts": "^5.4.0",
"pretty-bytes": "^6.0.0",
@@ -81,14 +81,14 @@
}
},
"node_modules/@aw-labs/icons": {
"version": "0.0.0-69",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-69.tgz",
"integrity": "sha512-gJvWRgRLM2auSgWs6aP1r46ClVeSm0sfS/Zi9ouu4LAmpcjqlJigK5H3x7/G9gPctKFYZo46ZMEDzKWpn8vwEw=="
"version": "0.0.0-71",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-71.tgz",
"integrity": "sha512-AwneKx5S+qoCLqHp5WbdpKTswhkC3svaqFgWS3TgTSthsji7pYllbpvvkIfQSzNEnA05bNe7pikESDeJ+2kWsQ=="
},
"node_modules/@aw-labs/ui": {
"version": "0.0.0-69",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-69.tgz",
"integrity": "sha512-LDf6hcYDd8YJpp9rRYHv1mFm8LEryWxFAV3AI8NPx7Z1lRlNs1XKlD0jqn1Q9x4NhT7ehwiTETYdCK1k9exdCg==",
"version": "0.0.0-71",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-71.tgz",
"integrity": "sha512-ZppAW9aUVRZHOhSb4RTIeU+8csh88h14jhodnMKThhnsPKYxcQPv9zzXTS3lKq7IbMToagf4mRlTRsAq97AgMw==",
"dependencies": {
"@aw-labs/icons": "*",
"normalize.css": "^8.0.1",
@@ -7467,14 +7467,14 @@
}
},
"@aw-labs/icons": {
"version": "0.0.0-69",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-69.tgz",
"integrity": "sha512-gJvWRgRLM2auSgWs6aP1r46ClVeSm0sfS/Zi9ouu4LAmpcjqlJigK5H3x7/G9gPctKFYZo46ZMEDzKWpn8vwEw=="
"version": "0.0.0-71",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-71.tgz",
"integrity": "sha512-AwneKx5S+qoCLqHp5WbdpKTswhkC3svaqFgWS3TgTSthsji7pYllbpvvkIfQSzNEnA05bNe7pikESDeJ+2kWsQ=="
},
"@aw-labs/ui": {
"version": "0.0.0-69",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-69.tgz",
"integrity": "sha512-LDf6hcYDd8YJpp9rRYHv1mFm8LEryWxFAV3AI8NPx7Z1lRlNs1XKlD0jqn1Q9x4NhT7ehwiTETYdCK1k9exdCg==",
"version": "0.0.0-71",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-71.tgz",
"integrity": "sha512-ZppAW9aUVRZHOhSb4RTIeU+8csh88h14jhodnMKThhnsPKYxcQPv9zzXTS3lKq7IbMToagf4mRlTRsAq97AgMw==",
"requires": {
"@aw-labs/icons": "*",
"normalize.css": "^8.0.1",
+2 -2
View File
@@ -20,8 +20,8 @@
},
"dependencies": {
"@aw-labs/appwrite-console": "^10.0.0",
"@aw-labs/icons": "0.0.0-69",
"@aw-labs/ui": "0.0.0-69",
"@aw-labs/icons": "0.0.0-71",
"@aw-labs/ui": "0.0.0-71",
"@popperjs/core": "^2.11.6",
"echarts": "^5.4.0",
"pretty-bytes": "^6.0.0",
+2 -1
View File
@@ -1,8 +1,9 @@
<script lang="ts">
export let tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export let size: '1' | '2' | '3' | '4' | '5' | '6' | '7';
export let trimmed = true;
</script>
<svelte:element this={tag} class={`heading-level-${size}`}>
<svelte:element this={tag} class={`heading-level-${size}`} class:u-trim-1={trimmed}>
<slot />
</svelte:element>
+2 -2
View File
@@ -4,13 +4,13 @@
export let href: string = null;
</script>
<Heading size="4" tag="h1">
<Heading size="4" tag="h1" trimmed={false}>
{#if href}
<a class="button is-text is-only-icon" {href} aria-label="page back">
<span class="icon-cheveron-left" aria-hidden="true" />
</a>
{/if}
<span class="text">
<span class="text u-trim-1 u-min-width-0">
<slot />
</span>
</Heading>