1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Moving EditorPanel to the top

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-09-28 14:17:00 +03:00
parent 9702c645b4
commit 3080c25c81
6 changed files with 22 additions and 23 deletions

View File

@ -7,7 +7,6 @@
.theme-light & {
border: 1px solid gainsboro;
border-radius: $radius;
.ace_scrollbar {
@include custom-scrollbar(dark);

View File

@ -67,11 +67,6 @@ export class CreateResource extends React.Component<Props> {
const { className } = this.props;
return (
<div className={cssNames("CreateResource flex column", className)}>
<EditorPanel
tabId={tabId}
value={data}
onChange={onChange}
/>
<InfoPanel
tabId={tabId}
error={error}
@ -79,6 +74,11 @@ export class CreateResource extends React.Component<Props> {
submitLabel={_i18n._(t`Create`)}
showNotifications={false}
/>
<EditorPanel
tabId={tabId}
value={data}
onChange={onChange}
/>
</div>
)
}

View File

@ -90,11 +90,6 @@ export class EditResource extends React.Component<Props> {
const { kind, getNs, getName } = resource;
return (
<div className={cssNames("EditResource flex column", this.props.className)}>
<EditorPanel
tabId={tabId}
value={draft}
onChange={onChange}
/>
<InfoPanel
tabId={tabId}
error={error}
@ -109,6 +104,11 @@ export class EditResource extends React.Component<Props> {
</div>
)}
/>
<EditorPanel
tabId={tabId}
value={draft}
onChange={onChange}
/>
</div>
)
}

View File

@ -2,7 +2,7 @@
@include hidden-scrollbar;
background: $dockInfoBackground;
border-top: 1px solid $dockInfoBorderColor;
border-bottom: 1px solid $dockInfoBorderColor;
padding: $padding $padding * 2;
flex-shrink: 0;

View File

@ -174,11 +174,6 @@ export class InstallChart extends Component<Props> {
return (
<div className="InstallChart flex column">
<EditorPanel
tabId={tabId}
value={values}
onChange={this.onValuesChange}
/>
<InfoPanel
tabId={tabId}
controls={panelControls}
@ -188,6 +183,11 @@ export class InstallChart extends Component<Props> {
submittingMessage={_i18n._(t`Installing...`)}
showSubmitClose={false}
/>
<EditorPanel
tabId={tabId}
value={values}
onChange={this.onValuesChange}
/>
</div>
);
}

View File

@ -106,18 +106,13 @@ export class UpgradeChart extends React.Component<Props> {
themeName="outlined"
value={version}
options={versions}
formatOptionLabel={this.formatVersionLabel}
formatOptionLabel={this.formatVersionLabel}
onChange={({ value }: SelectOption) => this.version = value}
/>
</div>
)
return (
<div className={cssNames("UpgradeChart flex column", className)}>
<EditorPanel
tabId={tabId}
value={value}
onChange={onChange}
/>
<InfoPanel
tabId={tabId}
error={error}
@ -126,6 +121,11 @@ export class UpgradeChart extends React.Component<Props> {
submittingMessage={_i18n._(t`Updating..`)}
controls={controlsAndInfo}
/>
<EditorPanel
tabId={tabId}
value={value}
onChange={onChange}
/>
</div>
)
}