Skip to content

Commit

Permalink
Merge pull request #1799 from jasneetsingh6114/fix/1794
Browse files Browse the repository at this point in the history
Enhance wallet button layout for better responsiveness and alignment.
  • Loading branch information
ajhollid authored Mar 11, 2025
2 parents ebd4b90 + 897933e commit 7f46a8c
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
51 changes: 51 additions & 0 deletions src/Components/WalletProvider/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.wallet-adapter-dropdown {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: var(--env-var-spacing-1);
}

.wallet-adapter-button {
display: flex;
align-items: center;
justify-content: center;
width: auto;
height: var(--env-var-height-2) !important;
font-size: var(--env-var-font-size-medium-plus) !important;
font-weight: 500 !important;
margin: 0;
padding: calc((var(--env-var-height-2) - var(--env-var-font-size-medium-plus) * 1.2) / 2) var(--env-var-spacing-1);
white-space: nowrap;
}

.wallet-adapter-modal-title {
font-size: var(--font-size-h5) !important;
}

/* Separator styling */
.wallet-adapter-modal-divider {
background-color: var(--border-color) !important;
margin: var(--spacing-md) 0 !important;
}

/* Responsive fixes */
@media (max-width: 1200px) {
.wallet-adapter-button {
font-size: var(--env-var-font-size-medium) !important;
padding: calc((var(--env-var-height-2) - var(--env-var-font-size-medium) * 1.2) / 2)
var(--env-var-spacing-1-minus) !important;

}
}

@media (max-width: 900px) {
.wallet-adapter-modal-wrapper {
flex-direction: column !important;
}

.wallet-adapter-modal-divider {
margin: var(--spacing-sm) 0 !important;
}
}
1 change: 1 addition & 0 deletions src/Components/WalletProvider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { WalletModalProvider } from "@solana/wallet-adapter-react-ui";
import { clusterApiUrl } from "@solana/web3.js";
import PropTypes from "prop-types";
import "./index.css";

// Default styles that can be overridden by your app
import "@solana/wallet-adapter-react-ui/styles.css";
Expand Down
3 changes: 2 additions & 1 deletion src/Pages/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const Settings = () => {
{t("settingsWalletDescription")}
</Typography>
</Box>
<Box>
<Box sx={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'flex-start', gap: 2 }}>
<Stack
direction="row"
spacing={2}
Expand Down Expand Up @@ -401,6 +401,7 @@ const Settings = () => {
</ConfigBox>
)}


<ConfigBox>
<Box>
<Typography component="h1">{t("settingsAbout")}</Typography>
Expand Down

0 comments on commit 7f46a8c

Please sign in to comment.