Add Mobile Safari optimizations and fixes to signup page
All checks were successful
Build And Push Image / docker (push) Successful in 3m10s
All checks were successful
Build And Push Image / docker (push) Successful in 3m10s
- Implement device detection and performance optimization flags - Add dynamic CSS classes based on device capabilities - Create mobile safari utility functions and client plugin - Optimize backdrop filters and hardware acceleration for iOS - Fix viewport height issues with mobile Safari fallbacks - Update membership fee config and add IBAN payment details - Prevent horizontal scrolling and improve mobile UX
This commit is contained in:
23
plugins/03.mobile-safari-fixes.client.ts
Normal file
23
plugins/03.mobile-safari-fixes.client.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Mobile Safari Fixes Plugin
|
||||
* Applies mobile Safari specific optimizations on client side
|
||||
*/
|
||||
|
||||
import { applyMobileSafariFixes } from '~/utils/mobile-safari-utils';
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
// Apply mobile Safari fixes on client-side mount
|
||||
if (typeof window !== 'undefined') {
|
||||
// Apply fixes immediately
|
||||
applyMobileSafariFixes();
|
||||
|
||||
// Also apply on route changes (for SPA navigation)
|
||||
const router = useRouter();
|
||||
router.afterEach(() => {
|
||||
// Small delay to ensure DOM is ready
|
||||
nextTick(() => {
|
||||
applyMobileSafariFixes();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user