Skip to content

Commit

Permalink
Simplify hydration options spacing with flex
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarwal-h committed Dec 22, 2024
1 parent 1481e4f commit 73db915
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions stories/react/advanced/SSR.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ export const Default: StoryObj = {
>
hydrate
</button>
<div style={{ display: "flex", alignItems: "center", gap: 8 }}>
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
<label>On hydration:</label>
<label style={{ marginLeft: 4 }}>
<label>
<input
type="checkbox"
style={{ marginLeft: 4 }}
checked={scrollOnMount}
onChange={() => {
setScrollOnMount((prev) => !prev);
Expand All @@ -119,10 +118,9 @@ export const Default: StoryObj = {
setScrollIndex(Number(e.target.value));
}}
/>
<label style={{ marginLeft: 4 }}>
<label>
<input
type="checkbox"
style={{ marginLeft: 4 }}
checked={smooth}
onChange={() => {
setSmooth((prev) => !prev);
Expand Down

0 comments on commit 73db915

Please sign in to comment.