Skip to content

Commit f37397b

Browse files
committed
Fix scroll bug
1 parent 668f264 commit f37397b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/components/Page.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
</div>
265265

266266
<div class="select-border-radius">
267-
<div>Margin: {padding - 10}</div>
267+
<div>Margin: {padding - 10}px</div>
268268
<input
269269
type="range"
270270
name=""
@@ -275,7 +275,7 @@
275275
/>
276276
</div>
277277
<div class="select-border-radius">
278-
<div>Border radius: {borderRadius}</div>
278+
<div>Border radius: {borderRadius}px</div>
279279
<input
280280
type="range"
281281
name=""
@@ -386,12 +386,17 @@
386386
place-items: center;
387387
height: fit-content;
388388
min-height: 100vh;
389+
margin-right: max(340px, 20%);
389390
}
390391
.controller {
391392
width: max(340px, 20%);
392393
display: flex;
393394
flex-direction: column;
394-
font-family: 'SF Pro Display Regular'
395+
font-family: 'SF Pro Display Regular';
396+
position: fixed;
397+
height: 100vh;
398+
right: 0;
399+
background: white;
395400
}
396401
.options {
397402
padding: 20px 20px;
@@ -410,7 +415,6 @@
410415
background: #0d6efd;
411416
color: rgb(250, 250, 250);
412417
font-family: 'SF Pro Display Medium';
413-
// margin: 18px 16px 16px;
414418
}
415419
}
416420
#codeSnippet {

0 commit comments

Comments
 (0)