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 { > .clusters {
//@include hidden-scrollbar; @include hidden-scrollbar;
//flex: 1;
.is-mac & {
margin-top: $padding;
}
} }
> .add-cluster { > .add-cluster {

View File

@ -8,6 +8,7 @@ import { workspaceStore } from "../common/workspace-store";
import { clusterStore } from "../common/cluster-store"; import { clusterStore } from "../common/cluster-store";
import { I18nProvider } from "@lingui/react"; import { I18nProvider } from "@lingui/react";
import { browserHistory } from "./navigation"; import { browserHistory } from "./navigation";
import { isMac } from "../common/vars";
import { _i18n } from "./i18n"; import { _i18n } from "./i18n";
import { App } from "./components/app"; import { App } from "./components/app";
import { ClusterManager } from "./components/cluster-manager"; import { ClusterManager } from "./components/cluster-manager";
@ -18,6 +19,7 @@ import { Preferences, preferencesRoute } from "./components/+preferences";
@observer @observer
class LensApp extends React.Component { class LensApp extends React.Component {
static async init() { static async init() {
App.rootElem.classList.toggle("is-mac", isMac);
await Promise.all([ await Promise.all([
userStore.load(), userStore.load(),
workspaceStore.load(), workspaceStore.load(),