kopia lustrzana https://github.com/elk-zone/elk
				
				
				
			feat: prevent arbitrary zooming on mobile devices (#234)
							rodzic
							
								
									5c5143d2c9
								
							
						
					
					
						commit
						091263ea05
					
				| 
						 | 
					@ -69,6 +69,10 @@ export default defineNuxtConfig({
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  app: {
 | 
					  app: {
 | 
				
			||||||
    keepalive: true,
 | 
					    keepalive: true,
 | 
				
			||||||
 | 
					    head: {
 | 
				
			||||||
 | 
					      // Prevent arbitrary zooming on mobile devices
 | 
				
			||||||
 | 
					      viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  i18n: {
 | 
					  i18n: {
 | 
				
			||||||
    locales: [
 | 
					    locales: [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -123,3 +123,8 @@ html.dark {
 | 
				
			||||||
html {
 | 
					html {
 | 
				
			||||||
  --at-apply: bg-base text-base;
 | 
					  --at-apply: bg-base text-base;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					body {
 | 
				
			||||||
 | 
					  /* Prevent arbitrary zooming on mobile devices */
 | 
				
			||||||
 | 
					  touch-action: pan-x pan-y;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue