chore: generate
This commit is contained in:
@@ -297,13 +297,7 @@ function PanelShell(props: {
|
|||||||
</box>
|
</box>
|
||||||
)}
|
)}
|
||||||
{minimal() ? (
|
{minimal() ? (
|
||||||
<box
|
<box width="100%" height={1} border={false} backgroundColor="transparent" flexShrink={0}>
|
||||||
width="100%"
|
|
||||||
height={1}
|
|
||||||
border={false}
|
|
||||||
backgroundColor="transparent"
|
|
||||||
flexShrink={0}
|
|
||||||
>
|
|
||||||
<box
|
<box
|
||||||
width="100%"
|
width="100%"
|
||||||
height={1}
|
height={1}
|
||||||
|
|||||||
@@ -257,12 +257,7 @@ export function RunPermissionBody(props: {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<box
|
<box width="100%" height="100%" flexDirection="column" backgroundColor={props.theme.surface}>
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
flexDirection="column"
|
|
||||||
backgroundColor={props.theme.surface}
|
|
||||||
>
|
|
||||||
<box
|
<box
|
||||||
flexDirection="column"
|
flexDirection="column"
|
||||||
gap={1}
|
gap={1}
|
||||||
|
|||||||
@@ -119,12 +119,7 @@ export function RunFooterSubagentBody(props: {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<box
|
<box width="100%" height="100%" flexDirection="column" backgroundColor={footer().surface}>
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
flexDirection="column"
|
|
||||||
backgroundColor={footer().surface}
|
|
||||||
>
|
|
||||||
<box paddingTop={1} paddingLeft={1} paddingRight={3} paddingBottom={1} flexDirection="column" flexGrow={1}>
|
<box paddingTop={1} paddingLeft={1} paddingRight={3} paddingBottom={1} flexDirection="column" flexGrow={1}>
|
||||||
<Show when={tab()}>
|
<Show when={tab()}>
|
||||||
{(current) => (
|
{(current) => (
|
||||||
|
|||||||
@@ -821,12 +821,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
flexShrink={0}
|
flexShrink={0}
|
||||||
backgroundColor={statuslineBackground()}
|
backgroundColor={statuslineBackground()}
|
||||||
>
|
>
|
||||||
<box
|
<box paddingLeft={1} paddingRight={1} backgroundColor={theme().statusAccent} flexShrink={0}>
|
||||||
paddingLeft={1}
|
|
||||||
paddingRight={1}
|
|
||||||
backgroundColor={theme().statusAccent}
|
|
||||||
flexShrink={0}
|
|
||||||
>
|
|
||||||
<text wrapMode="none" truncate>
|
<text wrapMode="none" truncate>
|
||||||
<span style={{ fg: modeColor(), bold: true }}>{modeLabel()}</span>
|
<span style={{ fg: modeColor(), bold: true }}>{modeLabel()}</span>
|
||||||
</text>
|
</text>
|
||||||
@@ -848,13 +843,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
</box>
|
</box>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<text
|
<text fg={statusColor()} wrapMode="none" truncate flexGrow={1} flexShrink={1}>
|
||||||
fg={statusColor()}
|
|
||||||
wrapMode="none"
|
|
||||||
truncate
|
|
||||||
flexGrow={1}
|
|
||||||
flexShrink={1}
|
|
||||||
>
|
|
||||||
<Show when={busy() && !exiting()} fallback={statusText()}>
|
<Show when={busy() && !exiting()} fallback={statusText()}>
|
||||||
<Show when={interruptLabel()}>
|
<Show when={interruptLabel()}>
|
||||||
{(label) => <span style={{ fg: armed() ? statusColor() : theme().muted }}>{label()} </span>}
|
{(label) => <span style={{ fg: armed() ? statusColor() : theme().muted }}>{label()} </span>}
|
||||||
@@ -865,11 +854,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
</box>
|
</box>
|
||||||
|
|
||||||
<Show when={activityMeta().length > 0}>
|
<Show when={activityMeta().length > 0}>
|
||||||
<box
|
<box paddingRight={1} backgroundColor="transparent" flexShrink={1}>
|
||||||
paddingRight={1}
|
|
||||||
backgroundColor="transparent"
|
|
||||||
flexShrink={1}
|
|
||||||
>
|
|
||||||
<text fg={theme().muted} wrapMode="none" truncate>
|
<text fg={theme().muted} wrapMode="none" truncate>
|
||||||
{activityMeta()}
|
{activityMeta()}
|
||||||
</text>
|
</text>
|
||||||
@@ -878,11 +863,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
|
|
||||||
<Show when={responsive().statusline.showModel && modelStatus()}>
|
<Show when={responsive().statusline.showModel && modelStatus()}>
|
||||||
{(info) => (
|
{(info) => (
|
||||||
<box
|
<box paddingRight={1} backgroundColor="transparent" flexShrink={0}>
|
||||||
paddingRight={1}
|
|
||||||
backgroundColor="transparent"
|
|
||||||
flexShrink={0}
|
|
||||||
>
|
|
||||||
<text fg={theme().text} wrapMode="none">
|
<text fg={theme().text} wrapMode="none">
|
||||||
{info().model}
|
{info().model}
|
||||||
<Show when={info().provider}>
|
<Show when={info().provider}>
|
||||||
@@ -902,12 +883,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
|
|
||||||
<For each={contextHints()}>
|
<For each={contextHints()}>
|
||||||
{(hint, index) => (
|
{(hint, index) => (
|
||||||
<box
|
<box paddingRight={1} backgroundColor="transparent" flexShrink={0} maxWidth={24}>
|
||||||
paddingRight={1}
|
|
||||||
backgroundColor="transparent"
|
|
||||||
flexShrink={0}
|
|
||||||
maxWidth={24}
|
|
||||||
>
|
|
||||||
<text fg={theme().text} wrapMode="none" truncate>
|
<text fg={theme().text} wrapMode="none" truncate>
|
||||||
<Show when={index() > 0 || ((hasActivityMeta() || hasModelStatus()) && index() === 0)}>
|
<Show when={index() > 0 || ((hasActivityMeta() || hasModelStatus()) && index() === 0)}>
|
||||||
{sectionSeparator()}
|
{sectionSeparator()}
|
||||||
@@ -921,12 +897,7 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
|
|
||||||
<Show when={commandHint()}>
|
<Show when={commandHint()}>
|
||||||
{(hint) => (
|
{(hint) => (
|
||||||
<box
|
<box paddingRight={1} backgroundColor="transparent" flexShrink={0} maxWidth={18}>
|
||||||
paddingRight={1}
|
|
||||||
backgroundColor="transparent"
|
|
||||||
flexShrink={0}
|
|
||||||
maxWidth={18}
|
|
||||||
>
|
|
||||||
<text fg={theme().text} wrapMode="none" truncate>
|
<text fg={theme().text} wrapMode="none" truncate>
|
||||||
<Show when={hasActivityMeta() || hasModelStatus() || hasContextHints()}>
|
<Show when={hasActivityMeta() || hasModelStatus() || hasContextHints()}>
|
||||||
{sectionSeparator()}
|
{sectionSeparator()}
|
||||||
|
|||||||
@@ -180,10 +180,7 @@ const startRoute: TuiRouteCurrent = { name: "session", params: { sessionID: "ses
|
|||||||
|
|
||||||
function findScrollBox(root: Renderable): ScrollBoxRenderable | undefined {
|
function findScrollBox(root: Renderable): ScrollBoxRenderable | undefined {
|
||||||
if (root instanceof ScrollBoxRenderable && containsDiff(root)) return root
|
if (root instanceof ScrollBoxRenderable && containsDiff(root)) return root
|
||||||
return root
|
return root.getChildren().map(findScrollBox).find(Boolean)
|
||||||
.getChildren()
|
|
||||||
.map(findScrollBox)
|
|
||||||
.find(Boolean)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function containsDiff(root: Renderable): boolean {
|
function containsDiff(root: Renderable): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user