diff --git a/.github/workflows/publish-knot-playground.yml b/.github/workflows/publish-knot-playground.yml index e2b83fc21c..7bea610c96 100644 --- a/.github/workflows/publish-knot-playground.yml +++ b/.github/workflows/publish-knot-playground.yml @@ -1,5 +1,5 @@ # Publish the Red Knot playground. -name: "[Playground] Release" +name: "[Knot Playground] Release" permissions: {} diff --git a/playground/api/src/index.ts b/playground/api/src/index.ts index 42b863166c..8410661a66 100644 --- a/playground/api/src/index.ts +++ b/playground/api/src/index.ts @@ -40,8 +40,7 @@ export default { const { DEV, PLAYGROUND } = env; const headers = DEV ? DEVELOPMENT_HEADERS : PRODUCTION_HEADERS; - - if (!DEV && request.url.startsWith("https://playknot.ruff.rs")) { + if (!DEV && request.headers.get("origin") === "https://playknot.ruff.rs") { headers["Access-Control-Allow-Origin"] = "https://playknot.ruff.rs"; } diff --git a/playground/knot/src/Editor/Files.tsx b/playground/knot/src/Editor/Files.tsx index 56c1411ebf..5bef993018 100644 --- a/playground/knot/src/Editor/Files.tsx +++ b/playground/knot/src/Editor/Files.tsx @@ -64,7 +64,7 @@ export function Files({ @@ -143,7 +147,7 @@ function FileEntry({ name, onClicked, onRenamed, selected }: FileEntryProps) { onClicked(); } }} - className="flex gap-2 items-center py-4" + className="flex gap-2 items-center py-4 cursor-pointer" > diff --git a/playground/shared/src/AstralButton.tsx b/playground/shared/src/AstralButton.tsx index 91410fc974..8776eaff18 100644 --- a/playground/shared/src/AstralButton.tsx +++ b/playground/shared/src/AstralButton.tsx @@ -18,6 +18,7 @@ export default function AstralButton({ "text-black", "hover:text-white", "hover:bg-galaxy", + "cursor-pointer", "outline-1", "dark:outline", "dark:hover:outline-white", diff --git a/playground/shared/src/SideBar.tsx b/playground/shared/src/SideBar.tsx index 892fd03db6..497bcf8415 100644 --- a/playground/shared/src/SideBar.tsx +++ b/playground/shared/src/SideBar.tsx @@ -40,7 +40,7 @@ export function SideBarEntry({ aria-label={title} onClick={onClick} role="button" - className={`group py-4 px-2 relative flex items-center justify-center flex-col fill-white text-white ${ + className={`group py-4 px-2 relative flex items-center justify-center flex-col fill-white text-white cursor-pointer ${ selected ? "opacity-100" : "opacity-50 hover:opacity-100" }`} >