调整聊天框宽度限制,调整 header 按钮位置
This commit is contained in:
@@ -159,7 +159,7 @@ export const GlobalChatbox: React.FC<Props> = ({ open, onClose }) => {
|
||||
const handleMouseMove = (event: MouseEvent) => {
|
||||
if (!isResizing) return;
|
||||
const newWidth = window.innerWidth - event.clientX;
|
||||
if (newWidth > 360 && newWidth < 1240) {
|
||||
if (newWidth > 360 && newWidth < 800) {
|
||||
setWidth(newWidth);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user