Skip to content

Commit c8cf24d

Browse files
author
Ives van Hoorne
committed
Update error view for transpiled code view
1 parent f6cd0d9 commit c8cf24d

File tree

1 file changed

+8
-3
lines changed
  • packages/react-sandpack/src/components/TranspiledCodeView

1 file changed

+8
-3
lines changed

packages/react-sandpack/src/components/TranspiledCodeView/styles.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
.sandpack-TranspiledCodeView__container {
2-
display: flex;
3-
flex-direction: column;
2+
position: relative;
3+
44
height: 100%;
55
}
66

77
.sandpack-TranspiledCodeView__error {
8+
position: absolute;
9+
bottom: 0;
10+
left: 0;
11+
right: 0;
12+
813
font-family: Menlo, Source Code Pro, monospace;
9-
background-color: #ba3537;
14+
background-color: rgba(186, 53, 55, 0.7);
1015
color: white;
1116

1217
padding: 0.5rem;

0 commit comments

Comments
 (0)