From 5fc0c3213be0fba7a7616cf5d7ed60a1a59ae7b1 Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 4 Jul 2025 05:01:39 +0200 Subject: [PATCH] Enhance responsive design in profile components by adjusting padding and layout properties for improved mobile usability. Updated styles in ButtonGroup, CartTab, OrdersTab, SettingsTab, and ProfilePage to ensure better visual consistency across different screen sizes. --- src/components/header/ButtonGroup.js | 2 +- src/components/profile/CartTab.js | 2 +- src/components/profile/OrdersTab.js | 6 +++--- src/components/profile/SettingsTab.js | 8 ++++---- src/pages/ProfilePage.js | 19 ++++++++++++++----- 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/src/components/header/ButtonGroup.js b/src/components/header/ButtonGroup.js index f6659b4..c395cd5 100644 --- a/src/components/header/ButtonGroup.js +++ b/src/components/header/ButtonGroup.js @@ -142,7 +142,7 @@ class ButtonGroup extends Component { onClose={this.toggleCart} disableScrollLock={true} > - + + {/* Payment Confirmation */} {showPaymentConfirmation && ( { if (loading) { return ( - + ); @@ -147,14 +147,14 @@ const OrdersTab = ({ orderIdFromHash }) => { if (error) { return ( - + {error} ); } return ( - + {orders.length > 0 ? ( diff --git a/src/components/profile/SettingsTab.js b/src/components/profile/SettingsTab.js index 52b853d..44679fa 100644 --- a/src/components/profile/SettingsTab.js +++ b/src/components/profile/SettingsTab.js @@ -235,8 +235,8 @@ class SettingsTab extends Component { render() { return ( - - + + Passwort ändern @@ -289,7 +289,7 @@ class SettingsTab extends Component { - + E-Mail-Adresse ändern @@ -332,7 +332,7 @@ class SettingsTab extends Component { - + API-Schlüssel diff --git a/src/pages/ProfilePage.js b/src/pages/ProfilePage.js index fe6db8f..720a68d 100644 --- a/src/pages/ProfilePage.js +++ b/src/pages/ProfilePage.js @@ -167,11 +167,16 @@ const ProfilePage = (props) => { } return ( - - - + + + - Mein Profil + {window.innerWidth < 600 ? + (tabValue === 0 ? 'Bestellabschluss' : + tabValue === 1 ? 'Bestellungen' : + tabValue === 2 ? 'Einstellungen' : 'Mein Profil') + : 'Mein Profil' + } {user && ( @@ -185,7 +190,11 @@ const ProfilePage = (props) => { value={tabValue} onChange={handleTabChange} variant="fullWidth" - sx={{ borderBottom: 1, borderColor: 'divider' }} + sx={{ + borderBottom: 1, + borderColor: 'divider', + display: { xs: 'none', sm: 'flex' } + }} TabIndicatorProps={{ style: { backgroundColor: '#2e7d32' } }}