From e59885963fdff8022736ab4903032b45cbd64eef Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Mon, 21 Sep 2026 18:50:55 +0800 Subject: style(desktop): Interaction.fs:191 行尾空白顺手修(P11 附带项) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LivingVillage.Desktop/Interaction.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LivingVillage.Desktop/Interaction.fs b/src/LivingVillage.Desktop/Interaction.fs index 3c011cb..3f04da8 100644 --- a/src/LivingVillage.Desktop/Interaction.fs +++ b/src/LivingVillage.Desktop/Interaction.fs @@ -188,7 +188,7 @@ module FloatingPrompt = let margin = 8 let screenX = int anchorWorldX - int cameraX - width / 2 let screenY = int anchorWorldY - int cameraY - 56 - let x = + let x = if width + margin * 2 > viewportWidth then margin else max margin (min (viewportWidth - margin - width) screenX) let topSafe = if x + width >= viewportWidth - hudTopRightWidth then hudTopRightHeight + margin else margin -- cgit v1.2.3