Skip to content

Commit 2bd5024

Browse files
committed
docs(website): 📝 add note to avoid render location issues #13
1 parent 7080a63 commit 2bd5024

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

website/src/routes/index.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ export default component$(() => {
2929
/>
3030
<main class="container">
3131
<Hero />
32+
<p class="!mt-12 rounded-md bg-amber-100 p-2 !text-sm">
33+
Due to the resumability, the{" "}
34+
<span class="rounded-lg border border-amber-200 bg-amber-200/65 p-1 font-mono text-xs font-semibold">{`<Toaster />`}</span>{" "}
35+
component should be positioned at the beginning of where you want to
36+
use it. This way, you won't encounter{" "}
37+
<a
38+
href="https://github.com/diecodev/qwik-sonner/issues/13"
39+
target="_blank"
40+
rel="noopener noreferrer"
41+
class="font-bold underline"
42+
>
43+
rendering issues.
44+
</a>
45+
</p>
3246
<div class="content">
3347
<Installation />
3448
<Usage />

website/src/routes/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ code {
101101
display: flex;
102102
flex-direction: column;
103103
gap: 48px;
104-
margin-top: 96px;
104+
margin-top: 48px;
105105
}
106106

107107
.buttons {
@@ -186,7 +186,7 @@ m .wrapper h2 {
186186
display: flex;
187187
flex-direction: column;
188188
gap: 48px;
189-
margin-top: 96px;
189+
margin-top: 48px;
190190
}
191191

192192
.wrapper footer {

0 commit comments

Comments
 (0)