Skip to content

Commit a90cb3c

Browse files
Copilotpelikhan
andauthored
Fix mobile code block overflow in rendered workshop docs (#1740)
* Initial plan * Add mobile code wrapping for rendered docs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Simplify mobile code wrapping rule Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 4c19c26 commit a90cb3c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/build-docs.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ body,
464464
.markdown-body > details > .workshop-page-title {
465465
font-size: 28px;
466466
}
467+
.markdown-body pre {
468+
white-space: pre-wrap;
469+
overflow-wrap: anywhere;
470+
}
471+
.markdown-body pre > code {
472+
white-space: inherit;
473+
}
467474
}
468475
469476
.markdown-body .anchor {

0 commit comments

Comments
 (0)