style: prettier
This commit is contained in:
@@ -155,8 +155,7 @@ function CardTitle({
|
|||||||
onClick={
|
onClick={
|
||||||
onClick &&
|
onClick &&
|
||||||
((e) => {
|
((e) => {
|
||||||
if (!endsTextSelection(e) && !movedPastSlop(pressedAt.current, e))
|
if (!endsTextSelection(e) && !movedPastSlop(pressedAt.current, e)) onClick();
|
||||||
onClick();
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onMouseDown={(e) => {
|
onMouseDown={(e) => {
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ describe("the Plex player's layers", () => {
|
|||||||
for (const c of popovers) expect(c).toMatch(/\bz-menu\b/);
|
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
|
// 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.
|
// z-popover — above the player's own z-overlay — and into the fullscreen element.
|
||||||
expect([...src.matchAll(/<PopoverSurface\b[^>]*?className=\{`\$\{PLAYER_MENU\}/g)]).toHaveLength(
|
expect([
|
||||||
2,
|
...src.matchAll(/<PopoverSurface\b[^>]*?className=\{`\$\{PLAYER_MENU\}/g),
|
||||||
);
|
]).toHaveLength(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("keeps the notices a level below", () => {
|
it("keeps the notices a level below", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user