Skip to content

Commit

Permalink
Merge pull request #492 from code-hike/next
Browse files Browse the repository at this point in the history
✨ Update website ✨
  • Loading branch information
pomber authored Dec 26, 2024
2 parents e0c0dea + f9781e0 commit 4605fbd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Merged

on:
pull_request:
pull_request_target:
types: [closed]
branches:
- next
Expand All @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Updated

on:
pull_request:
pull_request_target:
branches:
- next

Expand All @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down
4 changes: 2 additions & 2 deletions apps/web/demos/focus/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export function CodeContainer({ code }: { code: HighlightedCode }) {
}}
handlers={[focus]}
/>
<div className="p-2 mt-auto font-light text-center">
<div className="p-2 mt-auto font-light text-center text-white">
You can also change the focus annotations on a rendered codeblock:
</div>
<div className="flex justify-center gap-2 pb-4">
<div className="flex justify-center gap-2 pb-4 text-white">
<button
onClick={() => setFocused("lorem")}
disabled={focused === "lorem"}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/demos/hover/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Page() {

function HoverContainer(props: { children: React.ReactNode }) {
return (
<div className="bg-zinc-900/80 px-2 rounded hover-container">
<div className="bg-zinc-900/80 px-2 rounded hover-container text-white">
{props.children}
</div>
)
Expand Down

0 comments on commit 4605fbd

Please sign in to comment.