Skip to content

Commit 2524594

Browse files
authored
Merge pull request #113 from linksplatform/issue-110-ec5b7eeb
Fix broken code block display on mobile devices
2 parents 90fc90a + 08aeb62 commit 2524594

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/website/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,16 @@ body {
311311
border-radius: 0.5rem;
312312
overflow-x: auto;
313313
border-left: 3px solid var(--primary-color);
314+
-webkit-overflow-scrolling: touch;
314315
}
315316

316317
.example-card code {
317318
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
318319
font-size: 0.8125rem;
319320
color: var(--text-primary);
320321
line-height: 1.5;
322+
display: block;
323+
min-width: fit-content;
321324
}
322325

323326
/* Playground */
@@ -448,13 +451,16 @@ body {
448451
border-radius: 0.5rem;
449452
overflow-x: auto;
450453
border-left: 3px solid var(--primary-color);
454+
-webkit-overflow-scrolling: touch;
451455
}
452456

453457
.code-example code {
454458
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
455459
font-size: 0.8125rem;
456460
color: var(--text-primary);
457461
line-height: 1.5;
462+
display: block;
463+
min-width: fit-content;
458464
}
459465

460466
/* Footer */

0 commit comments

Comments
 (0)