Skip to content

Commit 20b9a69

Browse files
Fix styling issues
1 parent 94c859f commit 20b9a69

File tree

5 files changed

+13
-61
lines changed

5 files changed

+13
-61
lines changed

packages/app/src/app/components/CodeEditor/VSCode/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { ThemeProvider } from 'styled-components';
1010
import { Configuration } from './Configuration';
1111
import { Container, GlobalStyles } from './elements';
1212

13+
import './icon-theme.css';
14+
import './workbench-theme.css';
15+
1316
export const VSCode: React.FunctionComponent = () => {
1417
const { state, actions, effects } = useOvermind();
1518
const containerEl = useRef(null);

packages/app/src/app/overmind/effects/vscode/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,7 @@ export class VSCodeEffect {
523523
}
524524

525525
private prepareElements() {
526-
this.elements.editor.id = 'workbench.main.container';
527-
this.elements.editor.className = 'monaco-workbench mac nopanel';
526+
this.elements.editor.className = 'monaco-workbench';
528527
this.elements.editor.style.width = '100%';
529528
this.elements.editor.style.height = '100%';
530529

packages/app/src/app/pages/Sandbox/Editor/Content/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export const Content: React.FC = () => {
107107
}}
108108
>
109109
<div
110+
id="workbench.main.container"
110111
className="monaco-workbench mac nopanel"
111112
style={{
112113
height: '100%',

packages/app/src/app/pages/Sandbox/Editor/index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const ContentSplit: React.FC = () => {
3636

3737
useEffect(() => {
3838
async function loadTheme() {
39-
const { customVSCodeTheme } = state.preferences.settings;
39+
const vsCodeTheme = state.preferences.settings.customVSCodeTheme;
4040

4141
try {
42-
const theme = await getVSCodeTheme('', customVSCodeTheme);
43-
setLocalState({ theme, customVSCodeTheme });
42+
const theme = await getVSCodeTheme('', vsCodeTheme);
43+
setLocalState({ theme, vsCodeTheme });
4444
} catch (e) {
4545
console.error(e);
4646
}
@@ -51,7 +51,10 @@ const ContentSplit: React.FC = () => {
5151
) {
5252
loadTheme();
5353
}
54-
}, [localState.customVSCodeTheme, state.preferences.settings]);
54+
}, [
55+
localState.customVSCodeTheme,
56+
state.preferences.settings.customVSCodeTheme,
57+
]);
5558

5659
useEffect(() => {
5760
statusbarEl.current.appendChild(effects.vscode.getStatusbarElement());

yarn.lock

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,14 +1142,6 @@
11421142
lodash "^4.17.13"
11431143
to-fast-properties "^2.0.0"
11441144

1145-
"@cerebral/http@^4.0.0":
1146-
version "4.2.3"
1147-
resolved "https://registry.yarnpkg.com/@cerebral/http/-/http-4.2.3.tgz#58e0251ab582241f8cca2f3ff4d5133df7f945a7"
1148-
1149-
"@cerebral/mobx-state-tree@^3.0.0":
1150-
version "3.2.2"
1151-
resolved "https://registry.yarnpkg.com/@cerebral/mobx-state-tree/-/mobx-state-tree-3.2.2.tgz#d11e74a5a3e99ae4e29e13d555e3b22221a801dc"
1152-
11531145
"@cnakazawa/watch@^1.0.3":
11541146
version "1.0.3"
11551147
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef"
@@ -7455,13 +7447,6 @@ ccount@^1.0.0, ccount@^1.0.3:
74557447
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.4.tgz#9cf2de494ca84060a2a8d2854edd6dfb0445f386"
74567448
integrity sha512-fpZ81yYfzentuieinmGnphk0pLkOTMm6MZdVqwd77ROvhko6iujLNGrHH5E7utq3ygWklwfmwuG+A7P+NpqT6w==
74577449

7458-
cerebral@^4.0.0:
7459-
version "4.2.2"
7460-
resolved "https://registry.yarnpkg.com/cerebral/-/cerebral-4.2.2.tgz#11fe5c51f9508bd4ca403deb56e98279f2f658e9"
7461-
dependencies:
7462-
es6-error "^4.0.2"
7463-
function-tree "^3.2.2"
7464-
74657450
chain-function@^1.0.0:
74667451
version "1.0.0"
74677452
resolved "https://registry.yarnpkg.com/chain-function/-/chain-function-1.0.0.tgz#0d4ab37e7e18ead0bdc47b920764118ce58733dc"
@@ -8206,7 +8191,7 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0:
82068191
integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
82078192

82088193
console-feed@CompuIves/console-feed#build2, console-feed@^2.8.5:
8209-
version "2.8.8"
8194+
version "2.8.9"
82108195
resolved "https://codeload.github.com/CompuIves/console-feed/tar.gz/42f10eb3063f0f26ee9745c4c9e4542cb5591f46"
82118196
dependencies:
82128197
emotion "^9.1.1"
@@ -10318,10 +10303,6 @@ es5-shim@^4.5.13:
1031810303
resolved "https://registry.yarnpkg.com/es5-shim/-/es5-shim-4.5.13.tgz#5d88062de049f8969f83783f4a4884395f21d28b"
1031910304
integrity sha512-xi6hh6gsvDE0MaW4Vp1lgNEBpVcCXRWfPXj5egDvtgLz4L9MEvNwYEMdJH+JJinWkwa8c3c3o5HduV7dB/e1Hw==
1032010305

10321-
es6-error@^4.0.2:
10322-
version "4.1.1"
10323-
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
10324-
1032510306
[email protected], es6-iterator@~2.0.3:
1032610307
version "2.0.3"
1032710308
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
@@ -10732,10 +10713,6 @@ event-stream@^3.3.0, event-stream@~3.3.0:
1073210713
stream-combiner "~0.0.4"
1073310714
through "~2.3.1"
1073410715

10735-
eventemitter3@^2.0.2:
10736-
version "2.0.3"
10737-
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-2.0.3.tgz#b5e1079b59fb5e1ba2771c0a993be060a58c99ba"
10738-
1073910716
eventemitter3@^3.0.0, eventemitter3@^3.1.0:
1074010717
version "3.1.2"
1074110718
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7"
@@ -11864,14 +11841,6 @@ function-bind@^1.0.2, function-bind@^1.1.1:
1186411841
version "1.1.1"
1186511842
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
1186611843

11867-
function-tree@^3.2.2:
11868-
version "3.2.2"
11869-
resolved "https://registry.yarnpkg.com/function-tree/-/function-tree-3.2.2.tgz#c8b4cd1fe24d722ca4b8d6bce9244d3fd074c439"
11870-
dependencies:
11871-
chalk "^1.1.3"
11872-
eventemitter3 "^2.0.2"
11873-
universal-websocket-client "^1.0.1"
11874-
1187511844
function.prototype.name@^1.1.0, function.prototype.name@^1.1.1:
1187611845
version "1.1.1"
1187711846
resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.1.tgz#6d252350803085abc2ad423d4fe3be2f9cbda392"
@@ -23313,10 +23282,6 @@ safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1,
2331323282
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"
2331423283
integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==
2331523284

23316-
safe-buffer@~5.0.1:
23317-
version "5.0.1"
23318-
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7"
23319-
2332023285
safe-regex@^1.1.0:
2332123286
version "1.1.0"
2332223287
resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
@@ -25910,11 +25875,6 @@ [email protected]:
2591025875
resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
2591125876
integrity sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=
2591225877

25913-
ultron@~1.1.0:
25914-
version "1.1.1"
25915-
resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c"
25916-
integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==
25917-
2591825878
umask@^1.1.0:
2591925879
version "1.1.0"
2592025880
resolved "https://registry.yarnpkg.com/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d"
@@ -26184,12 +26144,6 @@ universal-user-agent@^4.0.0:
2618426144
dependencies:
2618526145
os-name "^3.1.0"
2618626146

26187-
universal-websocket-client@^1.0.1:
26188-
version "1.0.1"
26189-
resolved "https://registry.yarnpkg.com/universal-websocket-client/-/universal-websocket-client-1.0.1.tgz#ad7c00e22cea16a2a83d6ab5e67ada2928dbe96f"
26190-
dependencies:
26191-
ws "^2.2.0"
26192-
2619326147
universalify@^0.1.0:
2619426148
version "0.1.2"
2619526149
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
@@ -27313,14 +27267,6 @@ [email protected]:
2731327267
dependencies:
2731427268
mkdirp "^0.5.1"
2731527269

27316-
ws@^2.2.0:
27317-
version "2.3.1"
27318-
resolved "https://registry.yarnpkg.com/ws/-/ws-2.3.1.tgz#6b94b3e447cb6a363f785eaf94af6359e8e81c80"
27319-
integrity sha1-a5Sz5EfLajY/eF6vlK9jWejoHIA=
27320-
dependencies:
27321-
safe-buffer "~5.0.1"
27322-
ultron "~1.1.0"
27323-
2732427270
ws@^4.0.0:
2732527271
version "4.1.0"
2732627272
resolved "https://registry.yarnpkg.com/ws/-/ws-4.1.0.tgz#a979b5d7d4da68bf54efe0408967c324869a7289"

0 commit comments

Comments
 (0)