diff --git a/web/src/components/AppLayout.tsx b/web/src/components/AppLayout.tsx index 1abaf435..baa06224 100644 --- a/web/src/components/AppLayout.tsx +++ b/web/src/components/AppLayout.tsx @@ -72,11 +72,11 @@ const AppLayout: React.FC = () => { {/* Mobile: Wallet + Hamburger */} -
+
diff --git a/web/src/components/GovernanceInterface.tsx b/web/src/components/GovernanceInterface.tsx index 09207a51..a290610d 100644 --- a/web/src/components/GovernanceInterface.tsx +++ b/web/src/components/GovernanceInterface.tsx @@ -26,7 +26,7 @@ const GovernanceInterface: React.FC = () => {
- + Overview diff --git a/web/src/components/PezkuwiWalletButton.tsx b/web/src/components/PezkuwiWalletButton.tsx index 760a7f83..157b669e 100644 --- a/web/src/components/PezkuwiWalletButton.tsx +++ b/web/src/components/PezkuwiWalletButton.tsx @@ -11,6 +11,7 @@ import { } from '@/components/ui/dialog'; import { Wallet, Check, ExternalLink, Copy, LogOut } from 'lucide-react'; import { useToast } from '@/hooks/use-toast'; +import { useIsMobile } from '@/hooks/use-mobile'; export const PezkuwiWalletButton: React.FC = () => { const { @@ -24,6 +25,7 @@ export const PezkuwiWalletButton: React.FC = () => { const [isOpen, setIsOpen] = useState(false); const { toast } = useToast(); + const isMobile = useIsMobile(); const handleConnect = async () => { await connectWallet(); @@ -70,12 +72,17 @@ export const PezkuwiWalletButton: React.FC = () => { variant="outline" className="bg-green-500/20 border-green-500/50 text-green-400 hover:bg-green-500/30" onClick={() => setIsOpen(true)} + size={isMobile ? "icon" : "default"} > - - {selectedAccount.meta.name || 'Account'} - - {formatAddress(selectedAccount.address)} - + + {!isMobile && ( + <> + {selectedAccount.meta.name || 'Account'} + + {formatAddress(selectedAccount.address)} + + + )} {error && error.includes('not found') && ( diff --git a/web/src/components/dex/DEXDashboard.tsx b/web/src/components/dex/DEXDashboard.tsx index 8b4cfb0a..30f1a250 100644 --- a/web/src/components/dex/DEXDashboard.tsx +++ b/web/src/components/dex/DEXDashboard.tsx @@ -137,7 +137,7 @@ export const DEXDashboard: React.FC = () => {

Mint wrapped tokens for testing and liquidity provision

-
+
-
+
@@ -187,17 +187,17 @@ export function P2PDashboard() { - - + + - Express + Express - Buy - Sell - My Ads - + Buy + Sell + My Ads + - OTC + OTC diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx index fa597e21..6d4f5e6f 100644 --- a/web/src/components/ui/dialog.tsx +++ b/web/src/components/ui/dialog.tsx @@ -36,7 +36,7 @@ const DialogContent = React.forwardRef< {
{/* Back to Home Button and Invite Friend */} -
+
{/* Main Content Area */} -
+
{/* Left Section - Photo */}
@@ -550,20 +550,20 @@ export default function Citizens() {
{/* Right Section - NFT & ID Numbers */} -
+
{/* NFT Badge */} -
-
NFT ID
-
+
+
NFT ID
+
{nftDetails.citizenNFT ? `#${nftDetails.citizenNFT.collectionId}-${nftDetails.citizenNFT.itemId}` : 'N/A'}
{/* Citizen Number Badge */} -
-
Hejmara Welatî
-
Citizen No
-
+
+
Hejmara Welatî
+
Citizen No
+
{nftDetails.citizenNFT ? `#${nftDetails.citizenNFT.collectionId}-${nftDetails.citizenNFT.itemId}-${citizenNumber}` : 'N/A'}
@@ -571,7 +571,7 @@ export default function Citizens() { {/* Verified Badge */}
- VERIFIED + VERIFIED
diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx index 4bfe640e..ec7213f1 100644 --- a/web/src/pages/Dashboard.tsx +++ b/web/src/pages/Dashboard.tsx @@ -530,12 +530,12 @@ export default function Dashboard() {
- - Profile - Roles & Tikis - Referrals - Security - Activity + + Profile + Roles & Tikis + Referrals + Security + Activity diff --git a/web/tailwind.config.ts b/web/tailwind.config.ts index 5ab0dbcc..c811c502 100644 --- a/web/tailwind.config.ts +++ b/web/tailwind.config.ts @@ -19,6 +19,14 @@ export default { '2xl': '1400px' } }, + screens: { + 'xs': '480px', + 'sm': '640px', + 'md': '768px', + 'lg': '1024px', + 'xl': '1280px', + '2xl': '1536px', + }, extend: { colors: { border: 'hsl(var(--border))', diff --git a/web/vite.config.ts b/web/vite.config.ts index e35f3c2e..da9f63a9 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -30,7 +30,14 @@ export default defineConfig(() => ({ }, plugins: [ react(), - nodePolyfills(), + nodePolyfills({ + globals: { + Buffer: true, + global: true, + process: true, + }, + protocolImports: true, + }), ].filter(Boolean), resolve: { mainFields: ['module', 'main', 'exports'], @@ -43,10 +50,6 @@ export default defineConfig(() => ({ "@local/types": path.resolve(__dirname, "../shared/types"), "@pezkuwi/components": path.resolve(__dirname, "../shared/components"), "@shared": path.resolve(__dirname, "../shared"), - // Node polyfill shims for shared folder (outside web workspace) - 'vite-plugin-node-polyfills/shims/buffer': path.resolve(__dirname, './src/tests/mocks/buffer-shim.ts'), - 'vite-plugin-node-polyfills/shims/global': path.resolve(__dirname, './src/tests/mocks/global-shim.ts'), - 'vite-plugin-node-polyfills/shims/process': path.resolve(__dirname, './src/tests/mocks/process-shim.ts'), }, dedupe: ['react', 'lucide-react', 'sonner', '@pezkuwi/util-crypto', '@pezkuwi/util', '@pezkuwi/api', '@pezkuwi/extension-dapp', '@pezkuwi/keyring'], },