mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-4605 fix: sql editor shows datasets panels correctly (#2347)
* CB-4605 fix: sql editor shows datasets panels correctly * Revert "CB-4605 fix: sql editor shows datasets panels correctly" This reverts commit5e2afc5296. * CB-4605 fix: TE edit dataset works fine with new dividers * CB-4605 revert sqleditor displayed editors state * CB-4605 removed sqlEditor hack to open full size dataset * Revert "CB-4605 removed sqlEditor hack to open full size dataset" This reverts commit7ad98e42b4. * CB-4605 sqlEditor works as it was for EE and TE --------- Co-authored-by: s.teleshev <s.teleshev@mu.se> Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
co-authored by
s.teleshev
Evgenia Bezborodova
parent
4d04f4b2ee
commit
590830cbb5
@@ -41,11 +41,11 @@ export const SqlEditor = observer<Props>(function SqlEditor({ state }) {
|
||||
<Loader suspense>
|
||||
<CaptureView className={s(styles, { captureView: true })} view={sqlEditorView}>
|
||||
<Split {...splitState} split="horizontal" sticky={30}>
|
||||
<Pane className={s(styles, { pane: true })}>
|
||||
<Pane className={s(styles, { pane: true })} basis="50%" main>
|
||||
<SqlEditorLoader state={state} />
|
||||
</Pane>
|
||||
<ResizerControls />
|
||||
<Pane className={s(styles, { pane: true })} basis="50%" main>
|
||||
<Pane className={s(styles, { pane: true })}>
|
||||
<Loader suspense>
|
||||
<SqlResultTabs state={state} />
|
||||
</Loader>
|
||||
|
||||
@@ -79,10 +79,9 @@ export const SqlEditor = observer<ISqlEditorProps>(function SqlEditor({ state, c
|
||||
|
||||
useEffect(() => {
|
||||
if (isEditorEmpty) {
|
||||
split.fixate('maximize', true);
|
||||
split.state.setDisable(true);
|
||||
} else if (split.state.disable) {
|
||||
split.fixate('resize', false);
|
||||
split.state.setSize(-1);
|
||||
split.state.setDisable(false);
|
||||
}
|
||||
}, [isEditorEmpty]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user