mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-27 00:05:26 +00:00
align title with dev
This commit is contained in:
@@ -21,24 +21,6 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
|
|||||||
paddingRight={2}
|
paddingRight={2}
|
||||||
position={props.overlay ? "absolute" : "relative"}
|
position={props.overlay ? "absolute" : "relative"}
|
||||||
>
|
>
|
||||||
<box flexShrink={0} paddingRight={1}>
|
|
||||||
<TuiPluginRuntime.Slot
|
|
||||||
name="sidebar_title"
|
|
||||||
mode="single_winner"
|
|
||||||
session_id={props.sessionID}
|
|
||||||
title={session()!.title}
|
|
||||||
share_url={session()!.share?.url}
|
|
||||||
>
|
|
||||||
<box paddingRight={1}>
|
|
||||||
<text fg={theme.text}>
|
|
||||||
<b>{session()!.title}</b>
|
|
||||||
</text>
|
|
||||||
<Show when={session()!.share?.url}>
|
|
||||||
<text fg={theme.textMuted}>{session()!.share!.url}</text>
|
|
||||||
</Show>
|
|
||||||
</box>
|
|
||||||
</TuiPluginRuntime.Slot>
|
|
||||||
</box>
|
|
||||||
<scrollbox
|
<scrollbox
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
verticalScrollbarOptions={{
|
verticalScrollbarOptions={{
|
||||||
@@ -49,6 +31,22 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<box flexShrink={0} gap={1} paddingRight={1}>
|
<box flexShrink={0} gap={1} paddingRight={1}>
|
||||||
|
<TuiPluginRuntime.Slot
|
||||||
|
name="sidebar_title"
|
||||||
|
mode="single_winner"
|
||||||
|
session_id={props.sessionID}
|
||||||
|
title={session()!.title}
|
||||||
|
share_url={session()!.share?.url}
|
||||||
|
>
|
||||||
|
<box paddingRight={1}>
|
||||||
|
<text fg={theme.text}>
|
||||||
|
<b>{session()!.title}</b>
|
||||||
|
</text>
|
||||||
|
<Show when={session()!.share?.url}>
|
||||||
|
<text fg={theme.textMuted}>{session()!.share!.url}</text>
|
||||||
|
</Show>
|
||||||
|
</box>
|
||||||
|
</TuiPluginRuntime.Slot>
|
||||||
<TuiPluginRuntime.Slot name="sidebar_content" session_id={props.sessionID} />
|
<TuiPluginRuntime.Slot name="sidebar_content" session_id={props.sessionID} />
|
||||||
</box>
|
</box>
|
||||||
</scrollbox>
|
</scrollbox>
|
||||||
|
|||||||
Reference in New Issue
Block a user