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

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 2020-07-17 08:46:33 +03:00
parent 285bcb4795
commit a0831b3283
2 changed files with 7 additions and 2 deletions

View File

@ -34,8 +34,11 @@
}
> .clusters {
//@include hidden-scrollbar;
//flex: 1;
@include hidden-scrollbar;
.is-mac & {
margin-top: $padding;
}
}
> .add-cluster {

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(),