@podman-desktop/ui-svelte 1.25.0-next.202512191136-d5c9f4f → 1.25.0-next.202512191332-1cae7cf
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.
|
@@ -3,7 +3,6 @@ import type { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
|
|
3
3
|
import type { Component } from 'svelte';
|
|
4
4
|
|
|
5
5
|
import Icon from '../icons/Icon.svelte';
|
|
6
|
-
import { isFontAwesomeIcon } from '../utils/icon-utils';
|
|
7
6
|
|
|
8
7
|
interface Props {
|
|
9
8
|
title: string;
|
|
@@ -39,7 +38,7 @@ function click(): void {
|
|
|
39
38
|
<div
|
|
40
39
|
class="flex w-full pr-1 py-2 justify-between items-center cursor-pointer border-l-[4px]"
|
|
41
40
|
class:pl-3={!child}
|
|
42
|
-
class:pl-
|
|
41
|
+
class:pl-[34px]={child}
|
|
43
42
|
class:leading-none={child}
|
|
44
43
|
class:text-md={!child}
|
|
45
44
|
class:font-medium={!child}
|
|
@@ -52,16 +51,12 @@ function click(): void {
|
|
|
52
51
|
class:hover:bg-[var(--pd-secondary-nav-text-hover-bg)]={!selected}
|
|
53
52
|
class:hover:border-[var(--pd-secondary-nav-text-hover-bg)]={!selected}>
|
|
54
53
|
<span
|
|
55
|
-
class="group-hover:block flex gap-x-
|
|
54
|
+
class="group-hover:block flex gap-x-2 items-center"
|
|
56
55
|
class:flex-row={iconPosition === 'left'}
|
|
57
56
|
class:flex-row-reverse={iconPosition === 'right'}
|
|
58
57
|
class:capitalize={!child}>
|
|
59
58
|
{#if icon}
|
|
60
|
-
{#if isFontAwesomeIcon(icon)}
|
|
61
59
|
<Icon icon={icon}/>
|
|
62
|
-
{:else}
|
|
63
|
-
<Icon icon={icon} size=14/>
|
|
64
|
-
{/if}
|
|
65
60
|
{/if}
|
|
66
61
|
<span>{title}</span>
|
|
67
62
|
</span>
|
package/package.json
CHANGED