From 4eb8d784f04ac3b3947df4b9aa15510ff6f69de6 Mon Sep 17 00:00:00 2001 From: Bogdan Crisan Date: Mon, 9 Dec 2024 23:56:23 +0100 Subject: [PATCH] [ECO-2413] Fix pool page mobile styling (#449) Co-authored-by: Matt <90358481+xbtmatt@users.noreply.github.com> --- src/rust/processor | 2 +- .../trade-emojicoin/InputLabels.tsx | 2 +- .../pools/components/liquidity/index.tsx | 39 ++++++++++++------- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/rust/processor b/src/rust/processor index de5d38e2a..f09cb58b5 160000 --- a/src/rust/processor +++ b/src/rust/processor @@ -1 +1 @@ -Subproject commit de5d38e2a2581cc623c60410d389038167dadc50 +Subproject commit f09cb58b5c02bc000b856445eff8615773a864ca diff --git a/src/typescript/frontend/src/components/pages/emojicoin/components/trade-emojicoin/InputLabels.tsx b/src/typescript/frontend/src/components/pages/emojicoin/components/trade-emojicoin/InputLabels.tsx index a4c0aecb4..615c04c5c 100644 --- a/src/typescript/frontend/src/components/pages/emojicoin/components/trade-emojicoin/InputLabels.tsx +++ b/src/typescript/frontend/src/components/pages/emojicoin/components/trade-emojicoin/InputLabels.tsx @@ -8,7 +8,7 @@ export const AptosInputLabel = () => ( ); export const EmojiInputLabelStyles = - "pixel-heading-3 text-light-gray text-[24px] md:text-[30px] cursor-default"; + "pixel-heading-4 md:pixel-heading-3 text-light-gray text-[24px] cursor-default break-keep"; export const EmojiInputLabel = ({ emoji }: { emoji: string }) => ( diff --git a/src/typescript/frontend/src/components/pages/pools/components/liquidity/index.tsx b/src/typescript/frontend/src/components/pages/pools/components/liquidity/index.tsx index 2e6fd3818..73c715978 100644 --- a/src/typescript/frontend/src/components/pages/pools/components/liquidity/index.tsx +++ b/src/typescript/frontend/src/components/pages/pools/components/liquidity/index.tsx @@ -27,6 +27,7 @@ import Info from "components/info"; import { type PoolsData } from "../../ClientPoolsPage"; import { EmojiPill } from "components/EmojiPill"; import { FormattedNumber } from "components/FormattedNumber"; +import { useMatchBreakpoints } from "@hooks/index"; type LiquidityProps = { market: PoolsData | undefined; @@ -50,7 +51,7 @@ const InnerWrapper = ({ ); const grayLabel = ` - pixel-heading-4 mb-[-6px] text-light-gray !leading-5 uppercase + md:pixel-heading-4 mb-[-6px] text-light-gray !leading-5 uppercase `; const inputAndOutputStyles = ` @@ -62,6 +63,8 @@ const inputAndOutputStyles = ` const Liquidity = ({ market }: LiquidityProps) => { const { t } = translationFunction(); + const { isMobile } = useMatchBreakpoints(); + const searchParams = useSearchParams(); const presetInputAmount = @@ -156,8 +159,10 @@ const Liquidity = ({ market }: LiquidityProps) => {
- {direction === "add" ? t("You deposit") : t("You get")} - {balanceLabel} + + {direction === "add" ? t("You deposit") : t("You get")} + {balanceLabel} + {
- {direction === "add" ? "You deposit" : "You get"} - {balanceLabel} + + {direction === "add" ? "You deposit" : "You get"} + {balanceLabel} + {
- {direction === "remove" ? "You deposit" : "You get"} - {balanceLabel} + + {direction === "remove" ? "You deposit" : "You get"} + {balanceLabel} + { /> )} -
+
{market ? " LP" : "-"}
@@ -258,17 +267,21 @@ const Liquidity = ({ market }: LiquidityProps) => { return ( - + - + - + {t(direction === "add" ? "Add liquidity" : "Remove liquidity")} @@ -385,7 +398,7 @@ const Liquidity = ({ market }: LiquidityProps) => { - + {t("Reserves")}