mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
test(tui): mirror inline tool padding in snapshot
This commit is contained in:
parent
1499daf15f
commit
939426828d
2 changed files with 12 additions and 10 deletions
|
|
@ -1,11 +1,11 @@
|
|||
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
|
||||
|
||||
exports[`TUI inline tool wrapping snapshots consecutive grep, glob, and read rows at a narrow width 1`] = `
|
||||
" * Grep "OPENCODE.*DB|database|sqlite|drizzle|dev.*db|data.
|
||||
*dir|xdg|APPDATA" in packages/opencode/src (151 matches)
|
||||
* Glob "**/*db*" in packages/opencode (6 matches)
|
||||
-> Read packages/opencode/src/storage/db.ts [offset=1, limit=130]
|
||||
-> Read packages/opencode/src/index.ts [offset=1, limit=100]
|
||||
* Grep "export const OPENCODE_DB|OPENCODE_DB|OPENCODE_DEV|Global\\.
|
||||
Path\\.data|data =" in packages/opencode/src (115 matches)"
|
||||
" * Grep "OPENCODE.*DB|database|sqlite|drizzle|dev.*db|data.
|
||||
*dir|xdg|APPDATA" in packages/opencode/src (151 matches)
|
||||
* Glob "**/*db*" in packages/opencode (6 matches)
|
||||
-> Read packages/opencode/src/storage/db.ts [offset=1, limit=130]
|
||||
-> Read packages/opencode/src/index.ts [offset=1, limit=100]
|
||||
* Grep "export const OPENCODE_DB|OPENCODE_DB|OPENCODE_DEV|Global\\.
|
||||
Path\\.data|data =" in packages/opencode/src (115 matches)"
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -36,9 +36,11 @@ const tools = [
|
|||
|
||||
function InlineToolRow(props: { item: (typeof tools)[number] }) {
|
||||
return (
|
||||
<box paddingLeft={3} flexDirection="row">
|
||||
<text width={props.item.icon.length + 1}>{props.item.icon}</text>
|
||||
<text flexGrow={1}>{props.item.label}</text>
|
||||
<box paddingLeft={3}>
|
||||
<box paddingLeft={3} flexDirection="row">
|
||||
<text width={props.item.icon.length + 1}>{props.item.icon}</text>
|
||||
<text flexGrow={1}>{props.item.label}</text>
|
||||
</box>
|
||||
</box>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue