File tree 1 file changed +3
-8
lines changed
src/routes/tutorial/[slug]
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 261
261
262
262
<input
263
263
value ={path }
264
- readonly
265
264
on:change ={(e ) => {
266
- // TODO enable URL bar to control iframe
267
265
const url = new URL (e .currentTarget .value , adapter .base );
268
266
path = url .pathname + url .search + url .hash ;
267
+ iframe .src = adapter .base + path ;
269
268
}}
270
269
/>
271
270
</div >
405
404
width : 100% ;
406
405
height : 4rem ;
407
406
display : flex ;
407
+ gap : 0.5rem ;
408
408
padding : 0.4rem ;
409
409
background : #f9f9f9 ;
410
410
}
411
411
412
412
.chrome button {
413
- padding : 0.5rem 1 rem ;
413
+ padding : 0.5rem ;
414
414
}
415
415
416
416
.chrome button img {
435
435
font-size : 1.6rem ;
436
436
}
437
437
438
- /* TODO change this once the input is interactive */
439
- .chrome input :focus {
440
- outline : none ;
441
- }
442
-
443
438
iframe {
444
439
width : 100% ;
445
440
height : 100% ;
You can’t perform that action at this time.
0 commit comments