@invopop/popui 0.1.54 → 0.1.55
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.
|
@@ -200,13 +200,15 @@
|
|
|
200
200
|
let iconOnly = $derived(!children)
|
|
201
201
|
let hasIcon = $derived(!!icon && !iconOnly)
|
|
202
202
|
|
|
203
|
-
let iconSize = $derived(
|
|
204
|
-
|
|
203
|
+
let iconSize = $derived.by(() => {
|
|
204
|
+
if (shortcut) return 'size-3'
|
|
205
|
+
|
|
206
|
+
return {
|
|
205
207
|
sm: 'size-3',
|
|
206
208
|
md: 'size-4',
|
|
207
209
|
lg: 'size-4'
|
|
208
210
|
}[size]
|
|
209
|
-
)
|
|
211
|
+
})
|
|
210
212
|
|
|
211
213
|
// For icon-right, we need to reverse the padding
|
|
212
214
|
let paddingClass = $derived(
|
|
@@ -225,7 +227,7 @@
|
|
|
225
227
|
{#snippet iconContent()}
|
|
226
228
|
{#if shortcut}
|
|
227
229
|
<ShortcutWrapper
|
|
228
|
-
size="
|
|
230
|
+
size="sm"
|
|
229
231
|
theme={['dark', 'primary', 'danger'].includes(variant) ? 'navigation' : 'light'}
|
|
230
232
|
>
|
|
231
233
|
{@render iconElement()}
|