π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat(paste): update PasteCreatePanel and PasteLinkCard for mobile responsiveness
Aswin Asok38447bf68dd7
diff --git a/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx b/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsxindex a6fa80c334..2134ae1965 100644--- a/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx+++ b/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx@@ -1,6 +1,7 @@import { Navigation06Icon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { Box, CircularProgress, IconButton, TextField, Typography } from "@mui/material";+import useMediaQuery from "@mui/material/useMediaQuery";import { MAX_PASTE_CHARS } from "../constants";import { PasteLinkCard } from "./PasteLinkCard";import { pasteTextFieldSx } from "./textFieldSx";@@ -26,6 +27,7 @@ export const PasteCreatePanel = ({onCopyLink,onShareLink,}: PasteCreatePanelProps) => {+ const isMobile = useMediaQuery("(max-width:599.95px)", { noSsr: true });const isInputEmpty = inputText.trim().length === 0;const frameBlue = "#2f6df7";const inputGlassBg = "rgba(39, 42, 52, 0.76)";@@ -37,7 +39,7 @@ export const PasteCreatePanel = ({const softBlueCounterColor = "rgba(204, 224, 255, 0.96)";const privacyPills = ["Private",- "End To End Encrypted",+ isMobile ? "E2EE" : "End To End Encrypted","One-Time View","Deletes In 24 Hrs",];diff --git a/web/apps/paste/src/features/paste/components/PasteLinkCard.tsx b/web/apps/paste/src/features/paste/components/PasteLinkCard.tsxindex 980988b75d..f045803558 100644--- a/web/apps/paste/src/features/paste/components/PasteLinkCard.tsx+++ b/web/apps/paste/src/features/paste/components/PasteLinkCard.tsx@@ -333,6 +333,9 @@ export const PasteLinkCard = ({display: { xs: "block", sm: "none" },position: "absolute",left: { xs: 18 },+ "@media (max-width:449.95px)": {+ left: 6,+ },top: "100%",mt: "-22px",width: 132,@@ -444,8 +447,8 @@ export const PasteLinkCard = ({pl: { xs: 0, sm: 0 },mx: { xs: "auto", sm: 0 },transform: { xs: "translate(86px, 50px)", sm: "none" },- "@media (max-width:444.95px)": {- transform: "translate(126px, 50px)",+ "@media (max-width:449.95px)": {+ transform: "translate(96px, 50px)",},}}>