From b651c8fe98040438eb1b6fbdf9d3c8695b15c023 Mon Sep 17 00:00:00 2001
From: xao321 <xao321@hotmail.com>
Date: Sun, 18 Dec 2022 11:47:53 +0100
Subject: [PATCH] Fixed a backComp errors

---
 game/03-JavaScript/UI.js                       | 6 +++---
 game/04-Variables/variables-passageHeader.twee | 2 +-
 game/04-Variables/variables-versionUpdate.twee | 2 +-
 modules/css/base.css                           | 7 +++++++
 4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/game/03-JavaScript/UI.js b/game/03-JavaScript/UI.js
index 240e7c6952..4e6433271a 100644
--- a/game/03-JavaScript/UI.js
+++ b/game/03-JavaScript/UI.js
@@ -278,9 +278,9 @@ window.customColour = customColour;
 
 function zoom(value) {
 	const slider = $("[name$='" + Util.slugify("options.zoom") +"']");
-	value = Math.clamp(value || slider[0].value, 50, 200);
+	value = Math.clamp(value || slider[0].value || 0, 50, 200);
 	$("body").css("zoom", value + "%").css("-ms-zoom", value + "%");
-	if(slider[0].value != value){
+	if(slider[0] !== undefined && slider[0].value != value){
 		slider[0].value = value;
 		slider.trigger("change");
 	}
@@ -638,4 +638,4 @@ window.loadCharacterViewerDate = () => {
 	} else {
 		textArea.value = "Invalid Import";
 	}
-}
\ No newline at end of file
+}
diff --git a/game/04-Variables/variables-passageHeader.twee b/game/04-Variables/variables-passageHeader.twee
index d4a46acc7e..5f804992cf 100644
--- a/game/04-Variables/variables-passageHeader.twee
+++ b/game/04-Variables/variables-passageHeader.twee
@@ -41,7 +41,7 @@
 		<<updatehistorycontrols>>
 		<<set _preventUpdate to true>> /*prevent rewriting autosaves */
 		<<if $reducedLineHeight is true>><<addclass "#passages" "reducedLineHeight">><</if>>
-		<<run zoom($options.zoom, true)>> <!-- Pass the save's $zoom into the set zoom func, with second arg true, to either correct it to 100, or between 50 and 200. (Sanitisation) -->
+		<<run zoom($options.zoom)>>
 		<<run syncFavourites()>>
 		<<run initCustomLenses()>>	/* push custom eyelenses inside setup.colours.eyes; on every load/refresh it needs to be done. */
 		<<run syncDebugAddedEvents()>>
diff --git a/game/04-Variables/variables-versionUpdate.twee b/game/04-Variables/variables-versionUpdate.twee
index c380e54c8d..bc3a2329c1 100644
--- a/game/04-Variables/variables-versionUpdate.twee
+++ b/game/04-Variables/variables-versionUpdate.twee
@@ -3804,7 +3804,7 @@
 		<<unset $zoom>>
 	<</if>>
 
-	<<if $options.zoom> is undefined>>
+	<<if $options.zoom is undefined>>
 		<<set $options.zoom to 100>>
 	<</if>>
 
diff --git a/modules/css/base.css b/modules/css/base.css
index b70285c78d..8fc6855134 100644
--- a/modules/css/base.css
+++ b/modules/css/base.css
@@ -260,6 +260,11 @@ mouse.tooltip span:last-of-type {
 	cursor: default;
 }
 
+mouse.tooltip span:last-of-type>:last-child {
+	margin-left: 0px;
+	left: 0px;
+}
+
 mouse.tooltip:hover span:last-of-type {
 	display: inline;
 	position: absolute;
@@ -273,6 +278,7 @@ mouse.tooltip:hover span:last-of-type {
 mouse.tooltip-small {
 	font-weight: normal;
 	border-bottom: 1px dotted;
+	cursor:help;
 }
 
 mouse.tooltip-small span:last-of-type {
@@ -286,6 +292,7 @@ mouse.tooltip-small span:last-of-type {
 	line-height: 20px;
 	border-radius: 1px;
 	box-shadow: 0px 0px 8px 4px var(--900);
+	cursor: default;
 }
 
 mouse.tooltip-small:hover span:last-of-type {
-- 
GitLab