Skip to content

Commit 3556cd3

Browse files
committed
Install 頁面 CSS 布局修正
1 parent bc37364 commit 3556cd3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/pages/install/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
/>

src/pages/install/index.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@
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

0 commit comments

Comments
 (0)