Skip to content

Commit

Permalink
[Web]Fix datastudio layout (DataLinkDC#2650)
Browse files Browse the repository at this point in the history
* fix_datastudio_layout
  • Loading branch information
zackyoungh authored Dec 15, 2023
1 parent d64e6eb commit eb0b571
Show file tree
Hide file tree
Showing 2 changed files with 725 additions and 740 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import CodeShow from '@/components/CustomEditor/CodeShow';
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 { API_CONSTANTS } from '@/services/endpoints';
import { parseMilliSecondStr } from '@/utils/function';
Expand Down Expand Up @@ -139,7 +139,7 @@ const ConsoleContent = (props: ConsoleProps) => {
};

return (
<div style={{ height: props.height - 53 }}>
<div style={{ height: props.height - VIEW.leftMargin }}>
<SplitPane
split={'vertical'}
defaultSizes={[100, 500]}
Expand Down Expand Up @@ -178,7 +178,7 @@ const ConsoleContent = (props: ConsoleProps) => {
>
<CodeShow
code={selectNode?.log ? selectNode.log : ''}
height={props.height - 53}
height={props.height - VIEW.leftMargin}
language={'javalog'}
lineNumbers={'off'}
enableMiniMap
Expand Down
Loading

0 comments on commit eb0b571

Please sign in to comment.