From c43ba0be83e9b41621e7071eb7347183f821295a Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 24 Jan 2026 19:01:07 +0100 Subject: [PATCH] hide chat and accessibility buttons on mobile, add mobile action bar in footer #deploy --- index.html | 27 ++------ src/components/AccessibilityToggle.tsx | 2 +- src/components/Footer.tsx | 88 +++++++++++++++++++++++++- src/components/Header.tsx | 11 +++- src/components/Layout.tsx | 2 +- 5 files changed, 103 insertions(+), 27 deletions(-) diff --git a/index.html b/index.html index 6de249c..c971478 100644 --- a/index.html +++ b/index.html @@ -38,37 +38,20 @@ height: 52px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; bottom: 24px !important; - right: 120px !important; + right: 24px !important; font-size: 22px !important; position: fixed !important; z-index: 9999 !important; transform: none !important; } - /* Mobile responsive positioning */ + /* Hide chat button on mobile */ @media (max-width: 768px) { html body div[class*="chat-button"], html body div[class*="chat-launcher"], html body button[aria-label*="chat"], html body button[title*="chat"] { - right: 80px !important; - bottom: 24px !important; - width: 48px !important; - height: 48px !important; - font-size: 20px !important; - } - } - - @media (max-width: 640px) { - html body div[class*="chat-button"], - html body div[class*="chat-launcher"], - html body button[aria-label*="chat"], - html body button[title*="chat"] { - right: 70px !important; - bottom: 24px !important; - width: 44px !important; - height: 44px !important; - font-size: 18px !important; + display: none !important; } } @@ -117,7 +100,7 @@ chatButtons.forEach(button => { if (button) { button.style.setProperty('bottom', '24px', 'important'); - button.style.setProperty('right', '120px', 'important'); + button.style.setProperty('right', '24px', 'important'); button.style.setProperty('position', 'fixed', 'important'); button.style.setProperty('z-index', '9999', 'important'); button.style.setProperty('transform', 'none', 'important'); @@ -131,7 +114,7 @@ chatButtons.forEach(button => { if (button) { button.style.setProperty('bottom', '24px', 'important'); - button.style.setProperty('right', '120px', 'important'); + button.style.setProperty('right', '24px', 'important'); button.style.setProperty('position', 'fixed', 'important'); button.style.setProperty('z-index', '9999', 'important'); button.style.setProperty('transform', 'none', 'important'); diff --git a/src/components/AccessibilityToggle.tsx b/src/components/AccessibilityToggle.tsx index dd53fdb..fc1464a 100644 --- a/src/components/AccessibilityToggle.tsx +++ b/src/components/AccessibilityToggle.tsx @@ -49,7 +49,7 @@ const AccessibilityToggle = () => { {/* Toggle Button */} + + + + + + {showToTop && ( + + )} + + + +
{/* Logo & Description */} @@ -362,9 +439,16 @@ const Footer = () => {
+ {/* Mobile Accessibility Bar */} + {isAccessibilityOpen && ( +
+ +
+ )} +

{t('bottom.externalNotice', 'Externe Links: Wir sind nicht verantwortlich für Inhalte externer Webseiten.')}

-

© 2026. Agentur Mizera & Partner - {t('bottom.copyright', 'Alle Rechte vorbehalten.')}

+

2026. Agentur Mizera & Partner - {t('bottom.copyright', 'Alle Rechte vorbehalten.')}

diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 06de410..098e273 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -89,7 +89,10 @@ const Header = () => { )} - + {/* Language Switcher (Desktop only) */} +
+ +
{/* Mobile menu button */}