You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	This commit is contained in:
		| @@ -139,6 +139,17 @@ export default function useSource(noteBody: string, noteMarkupLanguage: number, | ||||
| 			js.push('}'); | ||||
| 			js.push('true;'); | ||||
|  | ||||
| 			// iOS doesn't automatically adjust the WebView's font size to match users' | ||||
| 			// accessibility settings. To do this, we need to tell it to match the system font. | ||||
| 			// See https://github.com/ionic-team/capacitor/issues/2748#issuecomment-612923135 | ||||
| 			const iOSSpecificCss = ` | ||||
| 				@media screen { | ||||
| 					:root body { | ||||
| 						font: -apple-system-body; | ||||
| 					} | ||||
| 				} | ||||
| 			`; | ||||
|  | ||||
| 			html = | ||||
| 				` | ||||
| 				<!DOCTYPE html> | ||||
| @@ -146,6 +157,9 @@ export default function useSource(noteBody: string, noteMarkupLanguage: number, | ||||
| 					<head> | ||||
| 						<meta charset="UTF-8"> | ||||
| 						<meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
| 						<style> | ||||
| 							${shim.mobilePlatform() === 'ios' ? iOSSpecificCss : ''} | ||||
| 						</style> | ||||
| 						${assetsToHeaders(result.pluginAssets, { asHtml: true })} | ||||
| 					</head> | ||||
| 					<body> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user