From e8d3408ce667ccf317612f6aca7b034961ec7adf Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Wed, 24 Jul 2024 22:01:18 +0200 Subject: [PATCH] Fix indentation --- src/tooltip.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tooltip.ts b/src/tooltip.ts index 5910ec4..948fd16 100644 --- a/src/tooltip.ts +++ b/src/tooltip.ts @@ -316,9 +316,8 @@ const tooltipPlugin = ViewPlugin.fromClass(class { let offset = tView.offset || noOffset, ltr = this.view.textDirection == Direction.LTR let left = size.width > space.right - space.left ? (ltr ? space.left : space.right - size.width) - : ltr - ? Math.max(space.left, Math.min(pos.left - (arrow ? Arrow.Offset : 0) + offset.x, space.right - width)) - : Math.min(Math.max(space.left, pos.left - width + (arrow ? Arrow.Offset : 0) - offset.x), space.right - width) + : ltr ? Math.max(space.left, Math.min(pos.left - (arrow ? Arrow.Offset : 0) + offset.x, space.right - width)) + : Math.min(Math.max(space.left, pos.left - width + (arrow ? Arrow.Offset : 0) - offset.x), space.right - width) let above = this.above[i] if (!tooltip.strictSide && (above ? pos.top - (size.bottom - size.top) - offset.y < space.top