Skip to content

Commit 0bba414

Browse files
committed
[Dashboard] Fix padding issue on NFT tab buttons (#5357)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the environment configuration and modifies a component in the dashboard application to enhance functionality and maintainability. ### Detailed summary - Added `ANALYTICS_SERVICE_URL` to the `.env.example` file. - Updated `REDIS_URL` in the `.env.example` file. - Refactored the `ButtonGroup` component in `token-id.tsx` to streamline the JSX structure by removing unnecessary line breaks and attributes. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 6dda1c2 commit 0bba414

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

apps/dashboard/.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ API_SERVER_SECRET=""
9292
# Used for the Faucet page (/<chain_id>)
9393
NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
9494
TURNSTILE_SECRET_KEY=""
95-
REDIS_URL=""
95+
REDIS_URL=""
96+
97+
ANALYTICS_SERVICE_URL=""

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/token-id.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,7 @@ export const TokenIdPage: React.FC<TokenIdPageProps> = ({
158158
overflow={{ base: "auto", md: "hidden" }}
159159
pb={{ base: 4, md: 0 }}
160160
>
161-
<ButtonGroup
162-
size="sm"
163-
variant="ghost"
164-
spacing={2}
165-
w={(tabs.length + 1) * 95}
166-
>
161+
<ButtonGroup size="sm" variant="ghost" spacing={2}>
167162
<Button
168163
type="button"
169164
isActive={tab === "Details"}

0 commit comments

Comments
 (0)