Skip to content

Hide chat avatar when artifact panel is open - #2342

Open
gary149 wants to merge 1 commit into
mainfrom
claude/happy-allen-rw574t
Open

Hide chat avatar when artifact panel is open#2342
gary149 wants to merge 1 commit into
mainfrom
claude/happy-allen-rw574t

Conversation

@gary149

@gary149 gary149 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adjusts the chat message layout to hide the avatar and reclaim its width when the artifact panel is open, improving space utilization in the narrowed chat column.

Changes

  • Import artifactPanel store to access the panel's open state
  • Hide MessageAvatar component when artifact panel is open by adding conditional hidden class
  • Adjust message info positioning to remove the lg:pl-7 padding when artifact panel is open, preventing unnecessary spacing in the narrowed layout

Implementation Details

  • The avatar is hidden using display:none which also drops the flex gap, allowing the chat column to reclaim the full width
  • Message info positioning is conditionally adjusted using template literals to maintain proper alignment in both states

https://claude.ai/code/session_01QaonxT6apped581fFwSrQi

The narrowed chat column reclaims the ~30px taken by the avatar and its
flex gap. Also drops the matching lg:pl-7 indent on the router-metadata
row, which exists only to align it past the avatar.

https://claude.ai/code/session_01QaonxT6apped581fFwSrQi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants