fix: tight border on mobile style

This commit is contained in:
Yifei Zhang
2023-03-30 16:20:47 +00:00
parent bf50ebac94
commit 1b140a1ed3
5 changed files with 32 additions and 21 deletions

View File

@@ -45,6 +45,10 @@ export function isIOS() {
return /iphone|ipad|ipod/.test(userAgent);
}
export function isMobileScreen() {
return window.innerWidth <= 600;
}
export function selectOrCopy(el: HTMLElement, content: string) {
const currentSelection = window.getSelection();