Unverified Commit eb0b5714 authored by ZackYoung's avatar ZackYoung Committed by GitHub

[Web]Fix datastudio layout (#2650)

* fix_datastudio_layout
parent d64e6eb7
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
import CodeShow from '@/components/CustomEditor/CodeShow'; import CodeShow from '@/components/CustomEditor/CodeShow';
import { SseData } from '@/models/Sse'; import { SseData } from '@/models/Sse';
import { DataStudioTabsItemType, StateType } from '@/pages/DataStudio/model'; import {DataStudioTabsItemType, StateType, VIEW} from '@/pages/DataStudio/model';
import { SSE_TOPIC } from '@/pages/DevOps/constants'; import { SSE_TOPIC } from '@/pages/DevOps/constants';
import { API_CONSTANTS } from '@/services/endpoints'; import { API_CONSTANTS } from '@/services/endpoints';
import { parseMilliSecondStr } from '@/utils/function'; import { parseMilliSecondStr } from '@/utils/function';
...@@ -139,7 +139,7 @@ const ConsoleContent = (props: ConsoleProps) => { ...@@ -139,7 +139,7 @@ const ConsoleContent = (props: ConsoleProps) => {
}; };
return ( return (
<div style={{ height: props.height - 53 }}> <div style={{ height: props.height - VIEW.leftMargin }}>
<SplitPane <SplitPane
split={'vertical'} split={'vertical'}
defaultSizes={[100, 500]} defaultSizes={[100, 500]}
...@@ -178,7 +178,7 @@ const ConsoleContent = (props: ConsoleProps) => { ...@@ -178,7 +178,7 @@ const ConsoleContent = (props: ConsoleProps) => {
> >
<CodeShow <CodeShow
code={selectNode?.log ? selectNode.log : ''} code={selectNode?.log ? selectNode.log : ''}
height={props.height - 53} height={props.height - VIEW.leftMargin}
language={'javalog'} language={'javalog'}
lineNumbers={'off'} lineNumbers={'off'}
enableMiniMap enableMiniMap
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment