mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	add PWA detection, remove Android/Safari marginBot
This commit is contained in:
		| @@ -5134,6 +5134,9 @@ function importCharacter(file) { | |||||||
|     }); |     }); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | const isPwaMode = window.navigator.standalone; | ||||||
|  | if (isPwaMode) { $("body").addClass('PWA') } | ||||||
|  |  | ||||||
| $(document).ready(function () { | $(document).ready(function () { | ||||||
|     //////////INPUT BAR FOCUS-KEEPING LOGIC///////////// |     //////////INPUT BAR FOCUS-KEEPING LOGIC///////////// | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4301,7 +4301,7 @@ body.waifuMode #avatar_zoom_popup { | |||||||
|     /* , |     /* , | ||||||
|     #world_popup  */ |     #world_popup  */ | ||||||
|         { |         { | ||||||
|         max-height: calc(100svh - 45px); |         max-height: calc(100svh - 40px); | ||||||
|         width: 100% !important; |         width: 100% !important; | ||||||
|         margin: 0 auto; |         margin: 0 auto; | ||||||
|         max-width: 100%; |         max-width: 100%; | ||||||
| @@ -4493,9 +4493,16 @@ body.waifuMode #avatar_zoom_popup { | |||||||
|         max-height: unset; |         max-height: unset; | ||||||
|         width: 100svw; |         width: 100svw; | ||||||
|         height: calc(100svh - 40px); |         height: calc(100svh - 40px); | ||||||
|         padding-right: max(env(safe-area-inset-right), 5px); |         padding-right: max(env(safe-area-inset-right), 0px); | ||||||
|         padding-left: max(env(safe-area-inset-left), 5px); |         padding-left: max(env(safe-area-inset-left), 0px); | ||||||
|  |         padding-bottom: 0; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     body.PWA #sheld { | ||||||
|  |         padding-right: max(env(safe-area-inset-right), 2px); | ||||||
|  |         padding-left: max(env(safe-area-inset-left), 2px); | ||||||
|         padding-bottom: max(env(safe-area-inset-bottom), 15px); |         padding-bottom: max(env(safe-area-inset-bottom), 15px); | ||||||
|  |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     #character_popup, |     #character_popup, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user