mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
handle mobile
This commit is contained in:
parent
67bc10f33b
commit
274294a367
4 changed files with 10 additions and 11 deletions
|
@ -1,4 +1,5 @@
|
|||
import { isExcalidrawPlusSignedUser, PlusAppLinkJSX, PlusLPLinkJSX } from "..";
|
||||
import { useDevice } from "../../components/App";
|
||||
import { shield } from "../../components/icons";
|
||||
import { Tooltip } from "../../components/Tooltip";
|
||||
import { t } from "../../i18n";
|
||||
|
@ -20,15 +21,14 @@ const EncryptedIcon = () => (
|
|||
);
|
||||
|
||||
const Footer = ({
|
||||
isMobile,
|
||||
langCode,
|
||||
onLangChange,
|
||||
}: {
|
||||
isMobile: boolean;
|
||||
langCode: string;
|
||||
onLangChange: (langCode: string) => void;
|
||||
}) => {
|
||||
if (isMobile) {
|
||||
const device = useDevice();
|
||||
if (device.isMobile) {
|
||||
const isTinyDevice = window.innerWidth < 362;
|
||||
return (
|
||||
<div
|
||||
|
|
|
@ -645,7 +645,6 @@ const ExcalidrawWrapper = () => {
|
|||
autoFocus={true}
|
||||
>
|
||||
<Footer
|
||||
isMobile={false}
|
||||
langCode={langCode}
|
||||
onLangChange={(langCode) => setLangCode(langCode)}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue