Skip to content

Commit d00c9da

Browse files
fix: info note responsive
1 parent be5eb4f commit d00c9da

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

components/ui/info-note.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ export function InfoNote({
1717
return (
1818
<div
1919
className={cn(
20-
"not-prose my-8 rounded-r-lg border-l-4 border-blue-500 bg-[#0f172a] p-6 shadow-sm",
20+
"not-prose my-4 rounded-r-lg border-l-2 md:border-l-4 border-blue-500 bg-[#0f172a] p-3 md:p-6 shadow-sm overflow-hidden md:my-8",
2121
className,
2222
)}
2323
>
24-
<div className="flex items-start gap-4">
24+
<div className="flex items-start gap-3 md:gap-4 min-w-0">
2525
<div className="mt-1 shrink-0 text-blue-500">
26-
<HugeiconsIcon icon={InformationCircleIcon} size={24} />
26+
<HugeiconsIcon icon={InformationCircleIcon} size={20} />
2727
</div>
28-
<div className="flex-1 space-y-4">
29-
<h4 className="text-lg font-semibold tracking-tight text-white">
28+
<div className="flex-1 space-y-2 md:space-y-4 min-w-0 w-full">
29+
<h4 className="text-base font-semibold tracking-tight text-white md:text-lg">
3030
{title}
3131
</h4>
32-
<div className="text-[15px] leading-relaxed text-slate-300 [&_p]:leading-relaxed">
32+
<div className="text-[14px] leading-relaxed text-slate-300 md:text-[15px] [&_p]:leading-relaxed [&_pre]:!m-0 [&_pre]:text-xs [&_pre]:md:text-sm [&_pre]:w-full [&_pre]:overflow-x-auto [&_pre]:max-w-full [&_pre]:box-border">
3333
{children}
3434
</div>
3535
</div>

content/blog/how-does-react-fiber-render-your-ui.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ in the browser.
175175
React works in time slices, constantly checking if it has time to process more units of work. Once it notices that its current `5ms` slice is up, it yields control back to the browser. The browser then takes your onClick callback from the queue and runs it.
176176

177177
<img src="/blog/scheduler/done.svg" alt="React UI Runtime" width="800" height="100" style={{ display: 'block', margin: '2rem auto' }} />
178-
How Does React Fiber Render Your UI
179178
nside that callback is the setCount function. Internally, setCount is just a state dispatcher it tells React, _this fiber has new work that needs to be scheduled._
180179

181180
## Schedule

0 commit comments

Comments
 (0)