mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -05:00
fix(console): fix test result panel overflow bug (#5643)
fix test result panel overflow bug
This commit is contained in:
parent
cfeb98c06f
commit
66abc50c6c
2 changed files with 30 additions and 38 deletions
|
@ -71,23 +71,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
flex-grow: 1;
|
|
||||||
|
|
||||||
.editorContainer {
|
.editorContainer {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
&.dashboardOpen {
|
&.dashboardOpen {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
height: 50%;
|
height: calc(50% - 64px); // 64px = header height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.resultPanel {
|
.resultPanel {
|
||||||
border-radius: 0 0 8px 8px;
|
border-radius: 0 0 8px 8px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,6 @@ function MonacoCodeEditor({
|
||||||
{actionButtons}
|
{actionButtons}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div className={styles.body}>
|
|
||||||
<div
|
<div
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className={classNames(styles.editorContainer, dashboard && styles.dashboardOpen)}
|
className={classNames(styles.editorContainer, dashboard && styles.dashboardOpen)}
|
||||||
|
@ -200,7 +199,6 @@ function MonacoCodeEditor({
|
||||||
</div>
|
</div>
|
||||||
{dashboard && <DashBoard {...dashboard} className={styles.resultPanel} />}
|
{dashboard && <DashBoard {...dashboard} className={styles.resultPanel} />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue