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:
parent
285bcb4795
commit
a0831b3283
@ -34,8 +34,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
> .clusters {
|
> .clusters {
|
||||||
//@include hidden-scrollbar;
|
@include hidden-scrollbar;
|
||||||
//flex: 1;
|
|
||||||
|
.is-mac & {
|
||||||
|
margin-top: $padding;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .add-cluster {
|
> .add-cluster {
|
||||||
|
|||||||
@ -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(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user