mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4453] [CLOSED] [GUI] Reserve the preview column only when there is something in it #5055
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5055
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4453
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:gui/preview-pane-027📝 Commits (1)
28b62cd[GUI] Reserve the preview column only when there is something in it📊 Changes
1 file changed (+23 additions, -5 deletions)
View changed files
📝
apps/host/src/screens/Chat.tsx(+23 -5)📄 Description
## Problem
A preview column could stay reserved with nothing in it. The split's width came from
selectedPreviewalone, while the panel renders nothing when that id matches no artifact, run or plan (an artifact removed from the session, a plan that was rejected, a Time-skip run whose files are gone). The result: a blank 627px column on the right, and the conversation squeezed into the remaining 545px.Measured in the installed app (1440x920 window, the chat from the screenshot):
.chatsplithadgrid-template-columns: minmax(0,1fr) 627pxanddata-preview="true",elementFromPoint(1100, 400)returned the split itself (nothing painted there), and.chat__innerwas 535px wide.Result
Validation
data-previewis absent,splitStyleis null,.chat__inneris 920px wide, centered (681px each side), and the assistant paragraph sits at its 56ch measure inside it.npm run typecheck→ clean;node --test tests/ui4-fixes.test.mjs tests/card-labels.test.mjs tests/context-ui.test.mjs→ 15 pass, 0 fail.EPERMcases), 108 skipped.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.