Skip to content

Commit 1cfc514

Browse files
fix
1 parent cb55476 commit 1cfc514

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/desktop/src/routes/target-select-overlay.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,11 @@ function Inner() {
291291
if (isFullHeight) {
292292
// Try to place on the right side
293293
const rightSpace = window.innerWidth - (left + width);
294-
if (rightSpace >= ctrlW + margin) {
294+
if (rightSpace >= ctrlW + margin)
295295
return { position: "right" as const };
296-
}
297296

298297
// Try to place on the left side
299-
if (left >= ctrlW + margin) {
300-
return { position: "left" as const };
301-
}
298+
if (left >= ctrlW + margin) return { position: "left" as const };
302299

303300
// Fall back to inside at the bottom
304301
return { position: "inside-bottom" as const };

0 commit comments

Comments
 (0)