Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

refactor: replace mobile upload ActionIcon with Button (#8048)

briosc1a6e2560d78
diff --git a/frontend/editor/src/core/components/shared/LandingActions.tsx b/frontend/editor/src/core/components/shared/LandingActions.tsx
index d70ee5d6ec..8951e5ac49 100644
--- a/frontend/editor/src/core/components/shared/LandingActions.tsx
+++ b/frontend/editor/src/core/components/shared/LandingActions.tsx
@@ -1,7 +1,6 @@
import React from "react";
import { Group, Tooltip } from "@mantine/core";
import { Button } from "@app/ui/Button";
-import { ActionIcon } from "@app/ui/ActionIcon";
import { Icon } from "@app/ui/Icon";
import { useFilesModalContext } from "@app/contexts/FilesModalContext";
import { useFilesPage } from "@app/contexts/FilesPageContext";
@@ -60,18 +59,16 @@ export function LandingActions({
{config?.enableMobileScanner && !isMobile && (
<Tooltip label={terminology.mobileUpload} position="bottom">
- <ActionIcon
- size="lg"
+ <Button
variant="secondary"
+ fat
aria-label={terminology.mobileUpload}
- className="landing-btn-icon"
onClick={(e) => {
e.stopPropagation();
onMobileUploadClick();
}}
- >
- <Icon name="qr-code" size="1.25rem" />
- </ActionIcon>
+ leftSection={<Icon name="qr-code" size="1.25rem" />}
+ />
</Tooltip>
)}
</Group>
diff --git a/frontend/editor/src/core/components/shared/LandingPage.css b/frontend/editor/src/core/components/shared/LandingPage.css
index b7afc537f0..ab1b6234ec 100644
--- a/frontend/editor/src/core/components/shared/LandingPage.css
+++ b/frontend/editor/src/core/components/shared/LandingPage.css
@@ -135,14 +135,6 @@
background-color: var(--c-illustration-line-strong);
}
-/* ── Action buttons ──────────────────────────────────────── */
-.landing-btn-icon {
- min-height: 3rem !important;
- width: 3rem !important;
- min-width: 3rem !important;
- border-radius: 0.75rem !important;
-}
-
/* Dropzone accept/reject outlines. Mantine 8 no longer supports nested
* `&[data-accept]` selectors inside the `styles` prop object, so these are
* plain CSS attribute selectors on a class applied to the Dropzone root. */