From b888413ca68235f8cda4757607a6cff037f554aa Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 26 Sep 2025 16:56:25 +0000 Subject: [PATCH] Dashboard: Fix BuyAndSwapWidget width (#8134) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on making minor adjustments to the layout and styling of components in the dashboard, specifically in `grid-pattern-embed-container.tsx` and `BuyAndSwapEmbed.tsx`. ### Detailed summary - In `grid-pattern-embed-container.tsx`, the width class `sm:w-[420px]` was removed from the `div`, allowing it to take its natural width. - In `BuyAndSwapEmbed.tsx`, the width class `!w-full` was removed from two instances of `SwapWidget`, maintaining the rounded border style but removing the full width constraint. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * Style * Buy and Swap widgets no longer force full-width, adapting to their container while preserving rounded, borderless styling. * Embed container relaxes small-screen width limits, allowing content to use available space more naturally. * Improves responsiveness, spacing, and alignment across devices, reducing unnecessary whitespace and preventing overstretched layouts. * Visual update only; no changes to widget behavior or controls. --- apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx | 4 ++-- .../src/@/components/blocks/grid-pattern-embed-container.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx b/apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx index 5bbb3473fa9..af61737726e 100644 --- a/apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx +++ b/apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx @@ -85,7 +85,7 @@ export function BuyAndSwapEmbed(props: { -
{props.children}
+
{props.children}
); }