(fix): small desktop app bugs
This commit is contained in:
parent
b0cdf0adf2
commit
d16f260a3a
3 changed files with 8 additions and 6 deletions
|
|
@ -156,7 +156,7 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
|
|||
)}
|
||||
</>
|
||||
)}
|
||||
<Controls className="mr-2 ring-border" />
|
||||
<Controls className="mr-2" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Button, cn } from "@tensamin/ui";
|
||||
import { Button, cn, useIsMobile } from "@tensamin/ui";
|
||||
import { Input } from "@tensamin/ui";
|
||||
import { Label } from "@tensamin/ui";
|
||||
import { useStorage } from "@tensamin/storage/context";
|
||||
|
|
@ -84,6 +84,7 @@ function parseTuFileContent(rawFileContent: string): {
|
|||
}
|
||||
|
||||
export default function Form() {
|
||||
const isMobile = useIsMobile();
|
||||
const uploadRef = React.useRef<HTMLInputElement | null>(null);
|
||||
const [isDragging, setIsDragging] = React.useState(false);
|
||||
const { save } = useStorage();
|
||||
|
|
@ -266,7 +267,7 @@ export default function Form() {
|
|||
|
||||
return (
|
||||
<div className="relative flex md:flex-row flex-col gap-15">
|
||||
{isTauri() ? (
|
||||
{isTauri() && isMobile ? (
|
||||
<>
|
||||
<QrCodeScanner
|
||||
onData={async (data) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue