Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ export const AgentCompanionDesktopPet: React.FC = () => {
{visibleTasks.length > 0 && (
<ScrollArea
ref={bubblesRef}
scrollbarVisibility="hidden"
className={`openbitfun-agent-companion-window__bubbles${isSingleTask ? ' openbitfun-agent-companion-window__bubbles--single' : ''}`}
aria-live="polite"
onDoubleClick={event => event.stopPropagation()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ describe('AgentCompanionDesktopPet styles', () => {
}
});

it('scrolls overflowing bubbles without drawing a scrollbar beside them', () => {
const source = readSource();
const bubbles = source.slice(
source.indexOf('<ScrollArea'),
source.indexOf('openbitfun-agent-companion-window__bubbles'),
);

expect(bubbles).toContain('scrollbarVisibility="hidden"');
});

it('delegates context-menu foregrounds and interaction states to the public menu item', () => {
const source = readSource();
const stylesheet = readStylesheet();
Expand Down
Loading