From 25754d2224018a4dea92464f73b34df3fcbb1b6d Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Tue, 24 Feb 2026 23:48:17 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20improve=20DEX=20page=20mobile=20UI=20?= =?UTF-8?q?=E2=80=94=20smaller=20back=20button,=20taller=20chart,=20compac?= =?UTF-8?q?t=20swap=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Back to Home button: smaller padding/font on mobile, pinned to corner - PriceChart: increase height to 280px, stack header vertically on mobile - TokenSwap: reduce padding/gaps/fonts on mobile, fix double-colon in balance text --- web/src/components/AppLayout.tsx | 4 ++-- web/src/components/TokenSwap.tsx | 24 +++++++++++------------ web/src/components/trading/PriceChart.tsx | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/web/src/components/AppLayout.tsx b/web/src/components/AppLayout.tsx index 6962c206..ea464171 100644 --- a/web/src/components/AppLayout.tsx +++ b/web/src/components/AppLayout.tsx @@ -554,7 +554,7 @@ const AppLayout: React.FC = () => { {(showDEX || showProposalWizard || showDelegation || showForum || showModeration || showTreasury || showStaking || showMultiSig || showEducation || showP2P) && ( -
+
diff --git a/web/src/components/TokenSwap.tsx b/web/src/components/TokenSwap.tsx index 18a62066..6d5d5d8b 100644 --- a/web/src/components/TokenSwap.tsx +++ b/web/src/components/TokenSwap.tsx @@ -867,7 +867,7 @@ const TokenSwap = () => { } return ( -
+
{/* Kurdistan Sun Animation Overlay during swap (only after confirm dialog is closed) */} {isSwapping && !showConfirm && (
@@ -890,9 +890,9 @@ const TokenSwap = () => { /> )} - -
-

{t('tokenSwap.tokenSwap')}

+ +
+

{t('tokenSwap.tokenSwap')}

@@ -908,11 +908,11 @@ const TokenSwap = () => { )}
-
+
{t('tokenSwap.from')} - {t('common.balance')}: {fromBalance} {getTokenDisplayName(fromToken)} + {t('common.balance')} {fromBalance} {getTokenDisplayName(fromToken)}
@@ -921,7 +921,7 @@ const TokenSwap = () => { value={fromAmount} onChange={(e) => setFromAmount(e.target.value)} placeholder="Amount" - className="text-2xl font-bold border-0 bg-transparent text-white placeholder:text-gray-500 placeholder:opacity-50" + className="text-lg sm:text-2xl font-bold border-0 bg-transparent text-white placeholder:text-gray-500 placeholder:opacity-50" disabled={!selectedAccount} /> { }} disabled={!selectedAccount} > - + {(() => { const token = AVAILABLE_TOKENS.find(t => t.symbol === toToken); diff --git a/web/src/components/trading/PriceChart.tsx b/web/src/components/trading/PriceChart.tsx index a27f535f..82cb5b05 100644 --- a/web/src/components/trading/PriceChart.tsx +++ b/web/src/components/trading/PriceChart.tsx @@ -89,13 +89,13 @@ export const PriceChart: React.FC = ({ fromToken, toToken, curr return ( -
+
{t('priceChart.label', { from: getDisplayName(fromToken), to: getDisplayName(toToken) })}
- + ${currentPrice.toFixed(4)}
= ({ fromToken, toToken, curr
- +