CB-3128 fix: log viewer splitter (#1466)

* CB-3128 fix: log viewer splitter

* CB-3128 chore: styles

* CB-3128 fix: update nav tree on connection create
This commit is contained in:
Alexey
2023-02-10 18:32:46 +03:00
committed by GitHub
parent b58a7bb63b
commit 1c133405c0
4 changed files with 9 additions and 4 deletions
@@ -7,5 +7,5 @@
*/
export function getProjectNodeId(projectId: string): string {
return `ext://resources/${projectId}`;
return `resource://${projectId}`;
}
@@ -25,6 +25,7 @@ const styles = css`
composes: theme-typography--body2 from global;
flex-shrink: 0;
padding: 16px 24px;
padding-top: 0;
max-height: 50px;
overflow: hidden;
@@ -32,8 +33,12 @@ const styles = css`
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: initial;
}
}
pre {
composes: theme-typography--caption from global;
}
`;
interface Props {
@@ -64,7 +69,7 @@ export const ProcessorSelectDialog = observer<Props>(function ProcessorSelectDia
onReject={onClose}
>
<export-object>
{context.sourceName ? translate('data_transfer_exporting_sql') : `${translate('data_transfer_exporting_table')} ${node?.name}`}
{!context.sourceName && `${translate('data_transfer_exporting_table')} ${node?.name}`}
<pre title={context.sourceName}>{context.sourceName}</pre>
</export-object>
{isLoading && <Loader />}
@@ -47,7 +47,7 @@ export const LogViewer = observer(function LogViewer() {
<log-view-wrapper>
<Split
{...splitState}
mode={logViewerState.selectedItem ? splitState.mode : 'maximize'}
mode={logViewerState.selectedItem ? splitState.mode : 'minimize'}
disable={!logViewerState.selectedItem}
keepRatio
>
@@ -23,7 +23,7 @@ const tabsStyles = css`
align-items: center;
}
Tab {
height: 46px!important;
height: 32px!important;
text-transform: uppercase;
font-weight: 500 !important;
}