Putting name & workspace in one line

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-03-23 12:42:17 +03:00
1 parent b413b61e07
commit 567bb465ff
3 files changed
+6 -4

No files matched your search

@@ -32,7 +32,7 @@ export class ClusterNameSetting extends React.Component<Props> {
render() {
return (
<>
<div className="box grow">
<SubTitle title="Name" />
<Input
theme="round-black"
@@ -41,7 +41,7 @@ export class ClusterNameSetting extends React.Component<Props> {
onChange={this.onChange}
onBlur={this.save}
/>
</>
</div>
);
}
}
@@ -13,7 +13,7 @@ interface Props {
export class ClusterWorkspaceSetting extends React.Component<Props> {
render() {
return (
<>
<div className="box grow">
<SubTitle title="Workspace"/>
<Select
value={this.props.cluster.workspace}
@@ -22,7 +22,7 @@ export class ClusterWorkspaceSetting extends React.Component<Props> {
({value: w.id, label: w.name})
)}
/>
</>
</div>
);
}
}
@@ -21,8 +21,10 @@ export class General extends React.Component<Props> {
</section>
<section id="cluster">
<h2>Cluster</h2>
<div className="flex gaps">
<ClusterNameSetting cluster={this.props.cluster} />
<ClusterWorkspaceSetting cluster={this.props.cluster} />
</div>
<ClusterIconSetting cluster={this.props.cluster} />
</section>
<section id="proxy">