mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
Preserve comment gutter space when sidecar is open
- Add pr-16 (64px) right padding to messages in condensed mode - Position badge at right-2 instead of right-0 -mr-12 - Badge stays within message bounds, visible in gutter - Prevents text from extending into comment gutter area - Maintains consistent spacing with/without sidecars
This commit is contained in:
@@ -267,7 +267,14 @@ export default function GooseMessage({
|
||||
const isFromCollaborator = message.sender && (message as any).metadata?.isFromCollaborator;
|
||||
|
||||
return (
|
||||
<div ref={messageContainerRef} className="goose-message flex w-full justify-start min-w-0 gap-3 relative">
|
||||
<div
|
||||
ref={messageContainerRef}
|
||||
className={cn(
|
||||
"goose-message flex w-full justify-start min-w-0 gap-3 relative",
|
||||
// Add right padding in condensed mode to make room for comment gutter
|
||||
displayMode === 'condensed' && 'pr-16'
|
||||
)}
|
||||
>
|
||||
{/* Goose Avatar on the left side with optional user badge */}
|
||||
<div className="flex-shrink-0 relative" style={{ marginTop: '0.25rem' }}>
|
||||
{/* Main Goose dot avatar */}
|
||||
@@ -404,7 +411,7 @@ export default function GooseMessage({
|
||||
{((comments && comments.length > 0) || (isCreatingComment && activeMessageId === uniqueMessageId)) && (
|
||||
<div className={cn(
|
||||
'absolute top-0 z-10',
|
||||
displayMode === 'full' ? 'left-full ml-4 w-80' : 'right-0 -mr-12'
|
||||
displayMode === 'full' ? 'left-full ml-4 w-80' : 'right-2'
|
||||
)}>
|
||||
<MessageComments
|
||||
messageId={uniqueMessageId}
|
||||
|
||||
Reference in New Issue
Block a user