diff options
| author | Adam <[email protected]> | 2025-12-30 07:24:35 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-30 07:24:40 -0600 |
| commit | e0e07c5d48ef0671f63ca8bd9119169ced493fac (patch) | |
| tree | 9377eab8b3cc5d3c2976ccae2d32e22db46ce816 /packages/ui | |
| parent | 281f9e623673e6bbfd9a5f9a8f9aae496abc99f2 (diff) | |
| download | opencode-e0e07c5d48ef0671f63ca8bd9119169ced493fac.tar.gz opencode-e0e07c5d48ef0671f63ca8bd9119169ced493fac.zip | |
feat(app): change server
Diffstat (limited to 'packages/ui')
| -rw-r--r-- | packages/ui/src/components/dialog.css | 2 | ||||
| -rw-r--r-- | packages/ui/src/components/list.css | 22 | ||||
| -rw-r--r-- | packages/ui/src/components/list.tsx | 10 | ||||
| -rw-r--r-- | packages/ui/src/context/dialog.tsx | 4 |
4 files changed, 28 insertions, 10 deletions
diff --git a/packages/ui/src/components/dialog.css b/packages/ui/src/components/dialog.css index 782f2570c..ff8587421 100644 --- a/packages/ui/src/components/dialog.css +++ b/packages/ui/src/components/dialog.css @@ -83,7 +83,7 @@ [data-slot="dialog-description"] { display: flex; padding: 16px; - padding-left: 20px; + padding-left: 24px; padding-top: 0; margin-top: -8px; justify-content: space-between; diff --git a/packages/ui/src/components/list.css b/packages/ui/src/components/list.css index 852bf486c..b896c4376 100644 --- a/packages/ui/src/components/list.css +++ b/packages/ui/src/components/list.css @@ -53,6 +53,8 @@ } > [data-component="icon-button"] { + width: 20px; + height: 20px; background-color: transparent; &:hover:not(:disabled), @@ -185,11 +187,25 @@ letter-spacing: var(--letter-spacing-normal); [data-slot="list-item-selected-icon"] { - color: var(--icon-strong-base); + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + aspect-ratio: 1/1; + [data-component="icon"] { + color: var(--icon-strong-base); + } } [data-slot="list-item-active-icon"] { + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + aspect-ratio: 1/1; display: none; - color: var(--icon-strong-base); + [data-component="icon"] { + color: var(--icon-strong-base); + } } [data-slot="list-item-extra-icon"] { @@ -201,7 +217,7 @@ border-radius: var(--radius-md); background: var(--surface-raised-base-hover); [data-slot="list-item-active-icon"] { - display: block; + display: inline-flex; } [data-slot="list-item-extra-icon"] { display: block !important; diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index a549c19e9..b94405c81 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -206,10 +206,16 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void }) > {props.children(item)} <Show when={item === props.current}> - <Icon data-slot="list-item-selected-icon" name="check-small" /> + <span data-slot="list-item-selected-icon"> + <Icon name="check-small" /> + </span> </Show> <Show when={props.activeIcon}> - {(icon) => <Icon data-slot="list-item-active-icon" name={icon()} />} + {(icon) => ( + <span data-slot="list-item-active-icon"> + <Icon name={icon()} /> + </span> + )} </Show> </button> )} diff --git a/packages/ui/src/context/dialog.tsx b/packages/ui/src/context/dialog.tsx index 8e1a6aad8..f85eb48df 100644 --- a/packages/ui/src/context/dialog.tsx +++ b/packages/ui/src/context/dialog.tsx @@ -1,6 +1,5 @@ import { createContext, - createEffect, createSignal, getOwner, Owner, @@ -70,9 +69,6 @@ function init() { export function DialogProvider(props: ParentProps) { const ctx = init() - createEffect(() => { - console.log("active", ctx.active) - }) return ( <Context.Provider value={ctx}> {props.children} |
