mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
[Beta] fix: gutter overlap with sandpack code on mobile (#5170)
* fix: gutter overlap * chore: move horizontal scrollbar to code-content
This commit is contained in:
committed by
GitHub
parent
d07016aea8
commit
8fe817e61e
@@ -211,8 +211,14 @@ html.dark .sp-wrapper {
|
||||
-webkit-font-smoothing: auto; /* Improve the legibility */
|
||||
}
|
||||
|
||||
.sandpack .sp-code-editor .cm-content {
|
||||
overflow-x: auto;
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
|
||||
.sandpack--playground .sp-code-editor .cm-line {
|
||||
padding: 0 var(--sp-space-3);
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.sandpack--playground .sp-code-editor .cm-lineNumbers {
|
||||
@@ -250,8 +256,9 @@ html.dark .sp-wrapper {
|
||||
}
|
||||
|
||||
.sp-code-editor .sp-cm .cm-scroller {
|
||||
overflow: auto;
|
||||
padding: 18px 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user