mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
fix(session-ui): tighten compact disclosure spacing (#46752)
This commit is contained in:
committed by
GitHub
Unverified
parent
2c3f94f0ba
commit
8525035bbe
@@ -74,6 +74,12 @@ story("summarizes subagents as Agent while retaining their card titles", async (
|
||||
await expect(
|
||||
group.locator('[data-component="context-tool-group-trigger"] [data-slot="basic-tool-tool-title"]'),
|
||||
).toHaveText("4 Shell, Read, Agent")
|
||||
const gap = await group.evaluate((element) => {
|
||||
const title = element.querySelector('[data-component="context-tool-group-trigger"]')!.getBoundingClientRect()
|
||||
const arrow = element.querySelector('[data-slot="collapsible-arrow-icon"]')!.getBoundingClientRect()
|
||||
return arrow.left - title.right
|
||||
})
|
||||
expect(gap).toBeLessThanOrEqual(8)
|
||||
await expect(group.locator('[data-component="task-tool-title"]')).toHaveText(["General", "Explore"])
|
||||
})
|
||||
|
||||
|
||||
@@ -173,6 +173,10 @@
|
||||
[data-component="collapsible"].tool-collapsible[data-compact="true"] > [data-slot="collapsible-trigger"] {
|
||||
height: 28px;
|
||||
|
||||
[data-slot="collapsible-arrow"] {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
[data-component="tool-trigger"],
|
||||
[data-slot="basic-tool-tool-info-main"] {
|
||||
gap: 6px;
|
||||
|
||||
Reference in New Issue
Block a user