Merge pull request #1799 from jasneetsingh6114/fix/1794
Enhance wallet button layout for better responsiveness and alignment.
This commit is contained in:
3 files changed
+54
-1
No files matched your search
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@ import {
|
|||||||
import { WalletModalProvider } from "@solana/wallet-adapter-react-ui";
|
import { WalletModalProvider } from "@solana/wallet-adapter-react-ui";
|
||||||
import { clusterApiUrl } from "@solana/web3.js";
|
import { clusterApiUrl } from "@solana/web3.js";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
import "./index.css";
|
||||||
|
|
||||||
// Default styles that can be overridden by your app
|
// Default styles that can be overridden by your app
|
||||||
import "@solana/wallet-adapter-react-ui/styles.css";
|
import "@solana/wallet-adapter-react-ui/styles.css";
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ const Settings = () => {
|
|||||||
{t("settingsWalletDescription")}
|
{t("settingsWalletDescription")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box sx={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'flex-start', gap: 2 }}>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
spacing={2}
|
spacing={2}
|
||||||
@@ -401,6 +401,7 @@ const Settings = () => {
|
|||||||
</ConfigBox>
|
</ConfigBox>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
<ConfigBox>
|
<ConfigBox>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography component="h1">{t("settingsAbout")}</Typography>
|
<Typography component="h1">{t("settingsAbout")}</Typography>
|
||||||
|
|||||||
Reference in new issue
Block a user