fix(app): update all v1 new-session icons (#32017)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
This commit is contained in:
parent
71402bcbc3
commit
40ddede2b1
5 changed files with 13 additions and 7 deletions
|
|
@ -319,7 +319,7 @@ export function DraftTabItem(props: {
|
||||||
}}
|
}}
|
||||||
class="flex h-full min-w-0 flex-1 flex-row items-center gap-1.5 overflow-hidden text-[13px] font-medium leading-5 text-v2-text-text-faint group-data-[active='true']:text-[var(--v2-text-text-base)]"
|
class="flex h-full min-w-0 flex-1 flex-row items-center gap-1.5 overflow-hidden text-[13px] font-medium leading-5 text-v2-text-text-faint group-data-[active='true']:text-[var(--v2-text-text-base)]"
|
||||||
>
|
>
|
||||||
<span class="flex size-4 shrink-0 rotate-90 items-center justify-center">
|
<span class="flex size-4 shrink-0 items-center justify-center">
|
||||||
<IconV2 name="edit" />
|
<IconV2 name="edit" />
|
||||||
</span>
|
</span>
|
||||||
<span class="truncate leading-5">{props.title}</span>
|
<span class="truncate leading-5">{props.title}</span>
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,6 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
icon={creating() ? "new-session-active" : "new-session"}
|
|
||||||
class="titlebar-icon w-8 h-6 p-0 box-border"
|
class="titlebar-icon w-8 h-6 p-0 box-border"
|
||||||
disabled={layout.sidebar.opened()}
|
disabled={layout.sidebar.opened()}
|
||||||
tabIndex={layout.sidebar.opened() ? -1 : undefined}
|
tabIndex={layout.sidebar.opened() ? -1 : undefined}
|
||||||
|
|
@ -577,7 +576,9 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
|
||||||
}}
|
}}
|
||||||
aria-label={language.t("command.session.new")}
|
aria-label={language.t("command.session.new")}
|
||||||
aria-current={creating() ? "page" : undefined}
|
aria-current={creating() ? "page" : undefined}
|
||||||
/>
|
>
|
||||||
|
<IconV2 name="edit" size="small" />
|
||||||
|
</Button>
|
||||||
</TooltipKeybind>
|
</TooltipKeybind>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ import { base64Encode } from "@opencode-ai/core/util/encode"
|
||||||
import { decode64 } from "@/utils/base64"
|
import { decode64 } from "@/utils/base64"
|
||||||
import { ResizeHandle } from "@opencode-ai/ui/resize-handle"
|
import { ResizeHandle } from "@opencode-ai/ui/resize-handle"
|
||||||
import { Button } from "@opencode-ai/ui/button"
|
import { Button } from "@opencode-ai/ui/button"
|
||||||
|
import { Icon as IconV2 } from "@opencode-ai/ui/v2/icon"
|
||||||
import { IconButton } from "@opencode-ai/ui/icon-button"
|
import { IconButton } from "@opencode-ai/ui/icon-button"
|
||||||
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
||||||
import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu"
|
import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu"
|
||||||
|
|
@ -2115,7 +2116,6 @@ export default function LegacyLayout(props: ParentProps) {
|
||||||
<div class="shrink-0 py-4">
|
<div class="shrink-0 py-4">
|
||||||
<Button
|
<Button
|
||||||
size="large"
|
size="large"
|
||||||
icon="new-session"
|
|
||||||
class="w-full"
|
class="w-full"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dir = worktree()
|
const dir = worktree()
|
||||||
|
|
@ -2123,6 +2123,7 @@ export default function LegacyLayout(props: ParentProps) {
|
||||||
navigateWithSidebarReset(`/${base64Encode(dir)}/session`)
|
navigateWithSidebarReset(`/${base64Encode(dir)}/session`)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<IconV2 name="edit" size="small" />
|
||||||
{language.t("command.session.new")}
|
{language.t("command.session.new")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import type { Session } from "@opencode-ai/sdk/v2/client"
|
import type { Session } from "@opencode-ai/sdk/v2/client"
|
||||||
import { Avatar } from "@opencode-ai/ui/avatar"
|
import { Avatar } from "@opencode-ai/ui/avatar"
|
||||||
import { Icon } from "@opencode-ai/ui/icon"
|
import { Icon } from "@opencode-ai/ui/icon"
|
||||||
|
import { Icon as IconV2 } from "@opencode-ai/ui/v2/icon"
|
||||||
import { IconButton } from "@opencode-ai/ui/icon-button"
|
import { IconButton } from "@opencode-ai/ui/icon-button"
|
||||||
import { Spinner } from "@opencode-ai/ui/spinner"
|
import { Spinner } from "@opencode-ai/ui/spinner"
|
||||||
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
||||||
|
|
@ -300,7 +301,7 @@ export const NewSessionItem = (props: {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="shrink-0 size-6 flex items-center justify-center">
|
<div class="shrink-0 size-6 flex items-center justify-center">
|
||||||
<Icon name="new-session" size="small" class="text-icon-weak" />
|
<IconV2 name="edit" size="small" class="text-icon-weak" />
|
||||||
</div>
|
</div>
|
||||||
<span class="text-14-regular text-text-strong min-w-0 flex-1 truncate">{label}</span>
|
<span class="text-14-regular text-text-strong min-w-0 flex-1 truncate">{label}</span>
|
||||||
</A>
|
</A>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ import { Collapsible } from "@opencode-ai/ui/collapsible"
|
||||||
import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu"
|
import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu"
|
||||||
import { Icon } from "@opencode-ai/ui/icon"
|
import { Icon } from "@opencode-ai/ui/icon"
|
||||||
import { IconButton } from "@opencode-ai/ui/icon-button"
|
import { IconButton } from "@opencode-ai/ui/icon-button"
|
||||||
|
import { IconButtonV2 } from "@opencode-ai/ui/v2/icon-button-v2"
|
||||||
|
import { Icon as IconV2 } from "@opencode-ai/ui/v2/icon"
|
||||||
import { Spinner } from "@opencode-ai/ui/spinner"
|
import { Spinner } from "@opencode-ai/ui/spinner"
|
||||||
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
||||||
import { type Session } from "@opencode-ai/sdk/v2/client"
|
import { type Session } from "@opencode-ai/sdk/v2/client"
|
||||||
|
|
@ -214,9 +216,10 @@ const WorkspaceActions = (props: {
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
<Show when={!props.touch()}>
|
<Show when={!props.touch()}>
|
||||||
<Tooltip value={props.language.t("command.session.new")} placement="top">
|
<Tooltip value={props.language.t("command.session.new")} placement="top">
|
||||||
<IconButton
|
<IconButtonV2
|
||||||
icon="new-session"
|
icon={<IconV2 name="edit" size="small" />}
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
size="small"
|
||||||
class="size-6 rounded-md opacity-0 pointer-events-none group-hover/workspace:opacity-100 group-hover/workspace:pointer-events-auto group-focus-within/workspace:opacity-100 group-focus-within/workspace:pointer-events-auto"
|
class="size-6 rounded-md opacity-0 pointer-events-none group-hover/workspace:opacity-100 group-hover/workspace:pointer-events-auto group-focus-within/workspace:opacity-100 group-focus-within/workspace:pointer-events-auto"
|
||||||
data-action="workspace-new-session"
|
data-action="workspace-new-session"
|
||||||
data-workspace={base64Encode(props.directory)}
|
data-workspace={base64Encode(props.directory)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue