Improve Split panel resize and better long log lines wrapping (#589)

This commit is contained in:
Hitesh Aringa 2023-09-20 20:52:52 +00:00 committed by Harness
parent c01a3fcc69
commit bfd341a79d
4 changed files with 9 additions and 2 deletions

View File

@ -145,7 +145,7 @@ const CheckPipelineStep: React.FC<CheckPipelineStepsProps & { step: TypesStep }>
useShowRequestError(error, 0)
return (
<Container key={step.number}>
<Container key={step.number} className={css.stepContainer}>
<Layout.Horizontal
spacing="small"
className={cx(css.stepHeader, { [css.expanded]: expanded, [css.selected]: expanded })}

View File

@ -206,6 +206,12 @@
z-index: 1;
}
.stepContainer {
display: flex;
flex-direction: column;
word-break: break-all;
}
.stepHeader {
display: flex;
align-items: center;

View File

@ -24,6 +24,7 @@ export declare const pipelineSteps: string
export declare const selected: string
export declare const spinner: string
export declare const status: string
export declare const stepContainer: string
export declare const stepHeader: string
export declare const stepLogContainer: string
export declare const subMenu: string

View File

@ -52,7 +52,7 @@ export const Checks: React.FC<ChecksProps> = ({ repoMetadata, pullRequestMetadat
<Container className={css.main}>
<Match expr={prChecksDecisionResult?.overallStatus}>
<Truthy>
<Split split="vertical" size={'calc(100% - 400px)'} minSize={600} maxSize={1200} primary="second">
<Split split="vertical" size={400} minSize={300} maxSize={700} primary="first">
<ChecksMenu
repoMetadata={repoMetadata}
pullRequestMetadata={pullRequestMetadata}