Skip to content

Commit 86584d4

Browse files
committed
Install 頁面 CSS 布局修正
1 parent bc37364 commit 86584d4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/pages/install/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
/>

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)