fix(artifacts): collapsible comment drawer in the fullscreen pop-out #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/comment-collapse"
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?
Problem
Comments are collapsible on artifacts in the in-app artifacts tab (the sidebar slides into a right drawer on mobile, toggled from the toolbar). But the fullscreen pop-out view of an artifact never opted into that behavior — so on mobile the comment column was stuck and couldn't be collapsed.
Fix
The drawer machinery already lives entirely in
ArtifactViewer+CommentSidebar(themobileDrawerprop, the bindablecommentsOpen, the scrim overlay, and the≤768pxslide-in animation). The pop-out page simply wasn't passing those props.This wires them through and adds a mobile-only
commentstoggle button in the pop-out header (with a live comment count), mirroring howMainSplitdrives the in-app tab.ArtifactViewerorCommentSidebar— behavior is fully reused.+page.sveltefor the pop-out route).Verification
pnpm install+pnpm run typecheck→ 0 errors across 915 files.https://claude.ai/code/session_015zV3LB6tz8yvZTZ92kQzeF
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.