mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 07:10:16 +08:00
feat: textarea with adaptive height
This commit is contained in:
@@ -50,6 +50,10 @@ export function isMobileScreen() {
|
||||
return window.innerWidth <= 600;
|
||||
}
|
||||
|
||||
export function isFirefox() {
|
||||
return /firefox/i.test(navigator.userAgent);
|
||||
}
|
||||
|
||||
export function selectOrCopy(el: HTMLElement, content: string) {
|
||||
const currentSelection = window.getSelection();
|
||||
|
||||
|
Reference in New Issue
Block a user