feat: textarea with adaptive height

This commit is contained in:
leedom
2023-04-07 12:17:37 +08:00
parent a8a8becf96
commit 3656c8458f
5 changed files with 28 additions and 108 deletions

View File

@@ -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();