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