File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ function App() {
734734 </ div >
735735 </ div >
736736 </ div >
737- < div className = "tw-shrink-1 tw-grow-1 tw-overflow-y-auto tw-pl-4 tw-pr-4 tw-gap-y-2 tw-flex tw-flex-col tw-mb-4" >
737+ < div className = "tw-shrink-1 tw-grow-1 tw-overflow-y-auto tw-pl-4 tw-pr-4 tw-gap-y-2 tw-flex tw-flex-col tw-mb-4 tw-h-0 " >
738738 < div className = "tw-flex tw-flex-wrap tw-gap-x-3 tw-gap-y-2 tw-items-start" >
739739 < div className = "tw-flex tw-flex-col tw-shrink-1 tw-grow-1 tw-basis-8/12" >
740740 < div className = "tw-grow-1 tw-shrink-0" >
@@ -899,6 +899,7 @@ function App() {
899899 < div id = "show-code-container" >
900900 < CodeEditor
901901 id = "show-code"
902+ className = "sc-inset-0"
902903 code = { scriptCode || undefined }
903904 diffCode = { diffCode === scriptCode ? "" : diffCode || "" }
904905 />
Original file line number Diff line number Diff line change 2222 contain : strict;
2323}
2424
25- # show-code {
25+ # show-code { /* 配合 .sc-inset-0 */
2626 margin : 0px ;
2727 padding : 0px ;
2828 border : 0px ;
29- width : 100% ;
30- height : 100% ;
3129 overflow : hidden;
3230 border : 1px solid var (--color-neutral-5 );
3331 box-sizing : border-box;
34- position : relative ;
32+ position : absolute ;
3533 background : # 071119 ;
3634}
3735
You can’t perform that action at this time.
0 commit comments