mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: scratchpad: allow close left main pane (#405)
This commit is contained in:
1 parent
9b92b47656
commit
ac289ae955
2 files changed
+19
-3
No files matched your search
@@ -97,10 +97,12 @@ export default function ScratchpadContainer() {
|
||||
</div>
|
||||
<SplitPane
|
||||
defaultSize={ui.main.size}
|
||||
minSize={250}
|
||||
size={ui.main.size}
|
||||
minSize={ui.activePage !== null ? 250 : 0}
|
||||
split="vertical"
|
||||
primary="second"
|
||||
primary="first"
|
||||
onChange={(size) => handleChangeSize('main', size)}
|
||||
allowResize={ui.activePage !== null}
|
||||
>
|
||||
<div className="scratchpad__problem">
|
||||
{Object.keys(pages).map((key) => {
|
||||
|
||||
Reference in new issue
Block a user