Skip to content

Commit f1ad74f

Browse files
authored
Merge pull request #449 from code-hike/next
Update website
2 parents bcc9cb2 + 2690c60 commit f1ad74f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

apps/web/components/blocks-to-context.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ export function WithTooltip({
3838
? "p-0 [&>*]:my-0 border-none overflow-auto rounded-none"
3939
: ""
4040
return (
41-
<TooltipProvider>
41+
<TooltipProvider delayDuration={100}>
4242
<Tooltip>
43-
<TooltipTrigger className="underline decoration-dotted underline-offset-4 cursor-help">
44-
{children}
43+
<TooltipTrigger asChild>
44+
<span className="underline decoration-dotted underline-offset-4 cursor-help">
45+
{children}
46+
</span>
4547
</TooltipTrigger>
4648
<TooltipContent className={className}>{block?.children}</TooltipContent>
4749
</Tooltip>

apps/web/content/blog/build-time-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ If you didn't know anything about the build process, your first thought might be
229229

230230
Let's assume we already have a <WithTooltip name="one">_`async function scrape(url)`_</WithTooltip> that given a URL it fetches the HTML, finds the open graph image tag, and returns the `content` attribute, which is the URL of the image we want.
231231

232-
We also have a <WithTooltip name="two">_`function LinkWithCard({ href, children, image })`_</WithTooltip> that renders a link with a hover card that shows the image (I'm using [shadcn's Hover Card](https://ui.shadcn.com/docs/components/hover-card)).
232+
We also have a <WithTooltip name="two">_`function LinkWithCard({ href, children, image })`_</WithTooltip> that renders a link with a hover card that shows the image.
233233

234234
## !one
235235

apps/web/content/blog/fine-grained/scrolly.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Rich(props: ContentProps) {
7474
/>
7575
</div>
7676
<div
77-
className="flex-1 min-w-0 relative flex flex-col gap-[calc(100vh-7rem)]"
77+
className="flex-1 min-w-0 flex flex-col gap-[calc(100vh-7rem)]"
7878
style={{ paddingTop: 32, paddingBottom: stickerHeight }}
7979
>
8080
{blocks.map((step, i) => (
@@ -90,7 +90,7 @@ function StepMessage({ step, index }: { step: Step; index: number }) {
9090
<Selectable
9191
index={index}
9292
selectOn={["scroll"]}
93-
className="data-[selected=true]:opacity-100 opacity-50 transition-opacity duration-300 border border-[var(--ch-23)] rounded bg-[var(--ch-22)] px-4 mx-12 prose-h3:mt-4"
93+
className="z-10 data-[selected=true]:opacity-100 opacity-50 transition-opacity duration-300 border border-[var(--ch-23)] rounded bg-[var(--ch-22)] px-4 mx-12 prose-h3:mt-4"
9494
>
9595
{step.children}
9696
{step.after?.children}

0 commit comments

Comments
 (0)