Catalog render optimizations (#3422)

This commit is contained in:
Alex Andreev authored and GitHub committed 2021-07-21 08:51:46 -04:00
1 parent 86db8e5e2c
commit 4fe0a7d73e
14 files changed
+268 -147

No files matched your search

@@ -35,10 +35,6 @@
position: relative;
display: flex;
flex-direction: column;
> * {
z-index: 1;
}
}
.HotbarMenu {
@@ -52,7 +48,7 @@
#lens-views {
position: absolute;
left: 0;
top: 0;
top: 40px; // Move below top bar
right: 0;
bottom: 0;
display: flex;
@@ -34,8 +34,6 @@ import { Extensions } from "../+extensions";
import { HotbarMenu } from "../hotbar/hotbar-menu";
import { EntitySettings } from "../+entity-settings";
import { Welcome } from "../+welcome";
import { ClusterTopbar } from "./cluster-topbar";
import { CatalogTopbar } from "./catalog-topbar";
import * as routes from "../../../common/routes";
@observer
@@ -43,8 +41,6 @@ export class ClusterManager extends React.Component {
render() {
return (
<div className="ClusterManager">
<Route component={CatalogTopbar} {...routes.catalogRoute} />
<Route component={ClusterTopbar} {...routes.clusterViewRoute} />
<main>
<div id="lens-views"/>
<Switch>
@@ -34,6 +34,7 @@ import { catalogEntityRegistry } from "../../api/catalog-entity-registry";
import { navigate } from "../../navigation";
import { catalogURL, ClusterViewRouteParams } from "../../../common/routes";
import { previousActiveTab } from "../+catalog";
import { ClusterTopbar } from "./cluster-topbar";
interface Props extends RouteComponentProps<ClusterViewRouteParams> {
}
@@ -104,6 +105,7 @@ export class ClusterView extends React.Component<Props> {
render() {
return (
<div className="ClusterView flex column align-center">
<ClusterTopbar {...this.props}/>
{this.renderStatus()}
</div>
);