Skip to content

Commit 5bcd8a9

Browse files
committed
Layout revision for the ChatWidget.js
1 parent 1c66524 commit 5bcd8a9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/components/ChatWidget.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ function ChatWindow({ onMinimize, onDragStart }) {
855855
const clamp = (n, min, max) => Math.min(max, Math.max(min, n))
856856

857857
const [desktopResizable, setDesktopResizable] = useState(false)
858-
const DEFAULT_WIDGET_SIZE = { w: 520, h: 680 }
858+
const DEFAULT_WIDGET_SIZE = { w: 520, h: 576 }
859859
const getDefaultWidgetSize = () => {
860860
if (typeof window === "undefined") return DEFAULT_WIDGET_SIZE
861861
const maxW = Math.min(900, window.innerWidth - 24)
@@ -1649,8 +1649,8 @@ function ChatWindow({ onMinimize, onDragStart }) {
16491649

16501650
<style jsx global>{`
16511651
#__chat_widget_root .bot-container {
1652-
height: min(80vh, 680px);
1653-
max-height: 680px;
1652+
height: min(68vh, 576px);
1653+
max-height: 576px;
16541654
}
16551655
16561656
/* ===== Desktop resize handles (show on hover only) ===== */
@@ -1758,7 +1758,7 @@ function ChatWindow({ onMinimize, onDragStart }) {
17581758
17591759
@supports (height: 100dvh) {
17601760
#__chat_widget_root .bot-container {
1761-
height: min(80dvh, 680px);
1761+
height: min(68dvh, 576px);
17621762
}
17631763
}
17641764
@@ -1953,14 +1953,16 @@ function ChatWindow({ onMinimize, onDragStart }) {
19531953
}
19541954
19551955
#__chat_widget_root .cw-chev {
1956-
width: 18px;
1957-
height: 18px;
1958-
opacity: 0.9;
1959-
transition: transform 160ms ease;
1956+
width: 22px;
1957+
height: 22px;
1958+
opacity: 0.95;
1959+
margin-left: 2px;
1960+
transition: transform 160ms ease, filter 160ms ease;
19601961
}
19611962
19621963
#__chat_widget_root .cw-chev.open {
19631964
transform: rotate(180deg);
1965+
filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
19641966
}
19651967
19661968
#__chat_widget_root .cw-mode-menu {

0 commit comments

Comments
 (0)