Skip to content

Commit fa15160

Browse files
authored
Fix - Sandpack error icon overlapping issue (#4332)
* position error icon correctly Add padding right to line with the error to accommodate space for the error icon. Added in a new selector because it was getting overridden by more specific selectors. Fixes #4287 * use important instead of selectors * fix overlapping for smaller screens * replace width with min-width * align error icon to center vertically Use em instead of pixels for padding, increase line height of error icon
1 parent 71cc6be commit fa15160

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

beta/src/styles/sandpack.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ html.dark .sp-tabs .sp-tab-button[data-active='true'] {
9090
.sp-code-editor .cm-errorLine {
9191
background-color: rgba(255, 107, 99, 0.1);
9292
position: relative;
93+
padding-right: 2em !important;
94+
display: inline-block;
95+
min-width: 100%;
9396
}
9497

9598
.sp-code-editor .cm-errorLine:after {
@@ -98,7 +101,7 @@ html.dark .sp-tabs .sp-tab-button[data-active='true'] {
98101
top: 0;
99102
content: '\26A0';
100103
font-size: 22px;
101-
line-height: 16px;
104+
line-height: 20px;
102105
color: #ff3d3d;
103106
}
104107

0 commit comments

Comments
 (0)