Skip to content

Commit c7b1a96

Browse files
Chat window responsive on drag and drop
1 parent 7079c52 commit c7b1a96

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/features/bubble/components/Bubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const Bubble = (props: BubbleProps) => {
9797
'background-repeat': 'no-repeat',
9898
'z-index': 42424242,
9999
bottom: `${Math.min(buttonPosition().bottom + buttonSize + 10, window.innerHeight - chatWindowBottom)}px`,
100-
right: `${Math.min(buttonPosition().right, window.innerWidth - 410)}px`,
100+
right: `${Math.max(0, Math.min(buttonPosition().right, window.innerWidth - (bubbleProps.theme?.chatWindow?.width ?? 410) - 10))}px`,
101101
}}
102102
class={
103103
`fixed sm:right-5 rounded-lg w-full sm:w-[400px] max-h-[704px]` +

0 commit comments

Comments
 (0)