Skip to content

Commit 652aa74

Browse files
committed
style(studio): format the files the repo formatter listed
1 parent 549c9a1 commit 652aa74

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

‎packages/studio/src/components/dock/Dock.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,7 @@ function WindowMenu() {
289289
Window
290290
</button>
291291
{open && (
292-
<div
293-
role="menu"
294-
className={`${menuClasses.panel} absolute right-0 top-8 z-50 w-44`}
295-
>
292+
<div role="menu" className={`${menuClasses.panel} absolute right-0 top-8 z-50 w-44`}>
296293
{panels.map((id) => (
297294
<button
298295
key={id}

‎packages/studio/src/components/sidebar/AssetContextMenu.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ export function ContextMenu({
9595
onClose();
9696
}, [renameDraft, asset, onRename, onClose]);
9797

98-
const itemCls =
99-
`${menuClasses.row} ${menuClasses.rowEnabled} active:bg-neutral-700/70 transition-colors`;
98+
const itemCls = `${menuClasses.row} ${menuClasses.rowEnabled} active:bg-neutral-700/70 transition-colors`;
10099

101100
return (
102101
<div
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
/** The one owner of context menu spacing: rows touch the panel, which clips to its rounded corners. */
22
export const menuClasses = {
3-
panel:
4-
"overflow-hidden rounded-md border border-neutral-700 bg-neutral-900 shadow-lg",
3+
panel: "overflow-hidden rounded-md border border-neutral-700 bg-neutral-900 shadow-lg",
54
group: "empty:hidden border-b border-neutral-700/60",
65
divider: "border-t border-neutral-700/60",
76
row: "w-full px-3 py-1.5 text-left text-xs outline-hidden",
8-
rowEnabled:
9-
"text-neutral-300 hover:bg-neutral-800 focus-visible:bg-neutral-800 cursor-pointer",
10-
rowDanger:
11-
"text-danger-ink hover:bg-danger/25 focus-visible:bg-danger/25 cursor-pointer",
7+
rowEnabled: "text-neutral-300 hover:bg-neutral-800 focus-visible:bg-neutral-800 cursor-pointer",
8+
rowDanger: "text-danger-ink hover:bg-danger/25 focus-visible:bg-danger/25 cursor-pointer",
129
rowDisabled: "text-neutral-600 cursor-not-allowed",
1310
} as const;

‎packages/studio/src/player/components/clipMenuToolItems.test.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ describe("ClipMenuToolItems", () => {
101101

102102
it("opens its submenu at the row's edge in window pixels, and flips left near the window's right edge", () => {
103103
const rowAt = (rect: { top: number; left: number; right: number }) =>
104-
vi
105-
.spyOn(HTMLElement.prototype, "getBoundingClientRect")
106-
.mockReturnValue(rect as DOMRect);
104+
vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockReturnValue(rect as DOMRect);
107105
const spy = rowAt({ top: 50, left: 100, right: 300 });
108106
renderItems("sound", video);
109107
openSubmenu("Voice");
@@ -112,7 +110,11 @@ describe("ClipMenuToolItems", () => {
112110
expect([menu.style.top, menu.style.left]).toEqual(["50px", "300px"]);
113111
act(() => root?.unmount());
114112
document.body.innerHTML = "";
115-
spy.mockReturnValue({ top: 50, left: window.innerWidth - 200, right: window.innerWidth - 10 } as DOMRect);
113+
spy.mockReturnValue({
114+
top: 50,
115+
left: window.innerWidth - 200,
116+
right: window.innerWidth - 10,
117+
} as DOMRect);
116118
renderItems("sound", video);
117119
openSubmenu("Voice");
118120
menu = document.querySelector<HTMLElement>('[role="menu"]')!;

0 commit comments

Comments
 (0)