summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 18:50:55 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 18:50:55 +0800
commite59885963fdff8022736ab4903032b45cbd64eef (patch)
tree42d0b8e3052a4f86181f4c969bef2b31c11d1f7e /src
parent27f0ca0597e2799e2a1ed431aadeb559c6dfbcf2 (diff)
downloadliving-village-e59885963fdff8022736ab4903032b45cbd64eef.tar.gz
style(desktop): Interaction.fs:191 行尾空白顺手修(P11 附带项)
Diffstat (limited to 'src')
-rw-r--r--src/LivingVillage.Desktop/Interaction.fs2
1 files changed, 1 insertions, 1 deletions
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