diff --git a/frontend/src/components/plexCards.tsx b/frontend/src/components/plexCards.tsx index 73dd39cb..f29e23d1 100644 --- a/frontend/src/components/plexCards.tsx +++ b/frontend/src/components/plexCards.tsx @@ -155,8 +155,7 @@ function CardTitle({ onClick={ onClick && ((e) => { - if (!endsTextSelection(e) && !movedPastSlop(pressedAt.current, e)) - onClick(); + if (!endsTextSelection(e) && !movedPastSlop(pressedAt.current, e)) onClick(); }) } onMouseDown={(e) => { diff --git a/frontend/src/lib/zLayer.contract.test.ts b/frontend/src/lib/zLayer.contract.test.ts index c57ef586..e6c72cf2 100644 --- a/frontend/src/lib/zLayer.contract.test.ts +++ b/frontend/src/lib/zLayer.contract.test.ts @@ -50,9 +50,9 @@ describe("the Plex player's layers", () => { for (const c of popovers) expect(c).toMatch(/\bz-menu\b/); // The tracks list and the ⋯ menu are on the popover engine (E28 review D3), which lifts them to // z-popover — above the player's own z-overlay — and into the fullscreen element. - expect([...src.matchAll(/]*?className=\{`\$\{PLAYER_MENU\}/g)]).toHaveLength( - 2, - ); + expect([ + ...src.matchAll(/]*?className=\{`\$\{PLAYER_MENU\}/g), + ]).toHaveLength(2); }); it("keeps the notices a level below", () => {