@x33025/sveltely 0.1.22 → 0.1.23

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.
@@ -96,7 +96,7 @@
96
96
 
97
97
  <div class="label" data-orientation={orientation} style={rootStyle}>
98
98
  {#if icon || label || labelContent}
99
- <span class="label-heading">
99
+ <span class="label-heading" data-custom={labelContent ? 'true' : undefined}>
100
100
  {#if icon}
101
101
  {@const Icon = icon}
102
102
  <span class="label-icon-frame" style={iconStyle}>
@@ -107,7 +107,7 @@
107
107
  {#if label}
108
108
  <span class="label-text">{label}</span>
109
109
  {:else if labelContent}
110
- <span class="label-text">
110
+ <span class="label-text label-text-custom">
111
111
  {@render labelContent()}
112
112
  </span>
113
113
  {/if}
@@ -162,6 +162,19 @@
162
162
  line-height: 1.25;
163
163
  }
164
164
 
165
+ .label-heading[data-custom='true'] {
166
+ min-width: 0;
167
+ width: 100%;
168
+ flex: 1 1 auto;
169
+ }
170
+
171
+ .label-text-custom {
172
+ display: inline-flex;
173
+ min-width: 0;
174
+ width: 100%;
175
+ flex: 1 1 auto;
176
+ }
177
+
165
178
  .label-content {
166
179
  display: inline-flex;
167
180
  min-width: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x33025/sveltely",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",