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:
parent
9702c645b4
commit
3080c25c81
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
.theme-light & {
|
.theme-light & {
|
||||||
border: 1px solid gainsboro;
|
border: 1px solid gainsboro;
|
||||||
border-radius: $radius;
|
|
||||||
|
|
||||||
.ace_scrollbar {
|
.ace_scrollbar {
|
||||||
@include custom-scrollbar(dark);
|
@include custom-scrollbar(dark);
|
||||||
|
|||||||
@ -67,11 +67,6 @@ export class CreateResource extends React.Component<Props> {
|
|||||||
const { className } = this.props;
|
const { className } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className={cssNames("CreateResource flex column", className)}>
|
<div className={cssNames("CreateResource flex column", className)}>
|
||||||
<EditorPanel
|
|
||||||
tabId={tabId}
|
|
||||||
value={data}
|
|
||||||
onChange={onChange}
|
|
||||||
/>
|
|
||||||
<InfoPanel
|
<InfoPanel
|
||||||
tabId={tabId}
|
tabId={tabId}
|
||||||
error={error}
|
error={error}
|
||||||
@ -79,6 +74,11 @@ export class CreateResource extends React.Component<Props> {
|
|||||||
submitLabel={_i18n._(t`Create`)}
|
submitLabel={_i18n._(t`Create`)}
|
||||||
showNotifications={false}
|
showNotifications={false}
|
||||||
/>
|
/>
|
||||||
|
<EditorPanel
|
||||||
|
tabId={tabId}
|
||||||
|
value={data}
|
||||||
|
onChange={onChange}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,11 +90,6 @@ export class EditResource extends React.Component<Props> {
|
|||||||
const { kind, getNs, getName } = resource;
|
const { kind, getNs, getName } = resource;
|
||||||
return (
|
return (
|
||||||
<div className={cssNames("EditResource flex column", this.props.className)}>
|
<div className={cssNames("EditResource flex column", this.props.className)}>
|
||||||
<EditorPanel
|
|
||||||
tabId={tabId}
|
|
||||||
value={draft}
|
|
||||||
onChange={onChange}
|
|
||||||
/>
|
|
||||||
<InfoPanel
|
<InfoPanel
|
||||||
tabId={tabId}
|
tabId={tabId}
|
||||||
error={error}
|
error={error}
|
||||||
@ -109,6 +104,11 @@ export class EditResource extends React.Component<Props> {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
<EditorPanel
|
||||||
|
tabId={tabId}
|
||||||
|
value={draft}
|
||||||
|
onChange={onChange}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
@include hidden-scrollbar;
|
@include hidden-scrollbar;
|
||||||
|
|
||||||
background: $dockInfoBackground;
|
background: $dockInfoBackground;
|
||||||
border-top: 1px solid $dockInfoBorderColor;
|
border-bottom: 1px solid $dockInfoBorderColor;
|
||||||
padding: $padding $padding * 2;
|
padding: $padding $padding * 2;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
|||||||
@ -174,11 +174,6 @@ export class InstallChart extends Component<Props> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="InstallChart flex column">
|
<div className="InstallChart flex column">
|
||||||
<EditorPanel
|
|
||||||
tabId={tabId}
|
|
||||||
value={values}
|
|
||||||
onChange={this.onValuesChange}
|
|
||||||
/>
|
|
||||||
<InfoPanel
|
<InfoPanel
|
||||||
tabId={tabId}
|
tabId={tabId}
|
||||||
controls={panelControls}
|
controls={panelControls}
|
||||||
@ -188,6 +183,11 @@ export class InstallChart extends Component<Props> {
|
|||||||
submittingMessage={_i18n._(t`Installing...`)}
|
submittingMessage={_i18n._(t`Installing...`)}
|
||||||
showSubmitClose={false}
|
showSubmitClose={false}
|
||||||
/>
|
/>
|
||||||
|
<EditorPanel
|
||||||
|
tabId={tabId}
|
||||||
|
value={values}
|
||||||
|
onChange={this.onValuesChange}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,11 +113,6 @@ export class UpgradeChart extends React.Component<Props> {
|
|||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<div className={cssNames("UpgradeChart flex column", className)}>
|
<div className={cssNames("UpgradeChart flex column", className)}>
|
||||||
<EditorPanel
|
|
||||||
tabId={tabId}
|
|
||||||
value={value}
|
|
||||||
onChange={onChange}
|
|
||||||
/>
|
|
||||||
<InfoPanel
|
<InfoPanel
|
||||||
tabId={tabId}
|
tabId={tabId}
|
||||||
error={error}
|
error={error}
|
||||||
@ -126,6 +121,11 @@ export class UpgradeChart extends React.Component<Props> {
|
|||||||
submittingMessage={_i18n._(t`Updating..`)}
|
submittingMessage={_i18n._(t`Updating..`)}
|
||||||
controls={controlsAndInfo}
|
controls={controlsAndInfo}
|
||||||
/>
|
/>
|
||||||
|
<EditorPanel
|
||||||
|
tabId={tabId}
|
||||||
|
value={value}
|
||||||
|
onChange={onChange}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user