added css-class "is-mac" to #app for customizing mac-specific styles

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-17 08:46:33 +03:00
1 parent 285bcb4795
commit a0831b3283
2 files changed
+7 -2

No files matched your search

@@ -34,8 +34,11 @@
}
> .clusters {
//@include hidden-scrollbar;
//flex: 1;
@include hidden-scrollbar;
.is-mac & {
margin-top: $padding;
}
}
> .add-cluster {
+2
View File
@@ -8,6 +8,7 @@ import { workspaceStore } from "../common/workspace-store";
import { clusterStore } from "../common/cluster-store";
import { I18nProvider } from "@lingui/react";
import { browserHistory } from "./navigation";
import { isMac } from "../common/vars";
import { _i18n } from "./i18n";
import { App } from "./components/app";
import { ClusterManager } from "./components/cluster-manager";
@@ -18,6 +19,7 @@ import { Preferences, preferencesRoute } from "./components/+preferences";
@observer
class LensApp extends React.Component {
static async init() {
App.rootElem.classList.toggle("is-mac", isMac);
await Promise.all([
userStore.load(),
workspaceStore.load(),