File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
extensionHostWorker/common Expand file tree Collapse file tree 5 files changed +13
-9
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 44} from '@codesandbox/common/lib/utils/global' ;
55
66import { FileSystemConfiguration } from '../../../../../../../../../standalone-packages/codesandbox-browserfs' ;
7+ import { IModule } from '../../../../../../../../../standalone-packages/codesandbox-browserfs/dist/node/backend/CodeSandboxFS' ;
78import { EXTENSIONS_LOCATION } from '../../constants' ;
89import {
910 mkdir ,
@@ -13,8 +14,6 @@ import {
1314 writeFile ,
1415} from '../../SandboxFsSync/utils' ;
1516
16- import { IModule } from '../../../../../../../../../standalone-packages/codesandbox-browserfs/dist/node/backend/CodeSandboxFS' ;
17-
1817const global = getGlobal ( ) ;
1918
2019export const BROWSER_FS_CONFIG : FileSystemConfiguration = {
@@ -65,6 +64,7 @@ export async function initializeBrowserFS({
6564 module : IModule ;
6665 } ;
6766 } = { } ;
67+ let isResolved = false ;
6868
6969 return new Promise ( resolve => {
7070 const config = { ...BROWSER_FS_CONFIG } ;
@@ -119,6 +119,10 @@ export async function initializeBrowserFS({
119119 case 'types-sync' : {
120120 types = evt . data . $data ;
121121 touchFileSystem ( ) ;
122+ if ( ! isResolved ) {
123+ isResolved = true ;
124+ resolve ( ) ;
125+ }
122126 break ;
123127 }
124128 case 'type-sync' : {
@@ -135,7 +139,6 @@ export async function initializeBrowserFS({
135139 $type : 'sync-types' ,
136140 $data : { } ,
137141 } ) ;
138- resolve ( ) ;
139142 } else {
140143 resolve ( ) ;
141144 }
Original file line number Diff line number Diff line change 1- import styled , { css } from 'styled-components' ;
2- import { Link } from 'react-router-dom' ;
3- import { SignInButton as BaseSignInButton } from 'app/pages/common/SignInButton' ;
41// @ts -ignore
2+ import { SignInButton as BaseSignInButton } from 'app/pages/common/SignInButton' ;
3+ import { Link } from 'react-router-dom' ;
4+ import styled , { css } from 'styled-components' ;
55import Dashboard from '-!svg-react-loader!@codesandbox/common/lib/icons/dashboard.svg' ;
66
77export const Container = styled . div < { zenMode : boolean } > `
88 ${ ( { theme, zenMode } ) => css `
99 display: ${ zenMode ? 'none' : 'flex' } ;
10- position: fixed;
11- z-index: 5;
1210 justify-content: space-between;
1311 align-items: center;
1412 background-color: ${ theme [ 'titleBar.activeBackground' ] ||
@@ -39,7 +37,7 @@ export const Right = styled.div`
3937 display: flex;
4038 align-items: center;
4139 height: 100%;
42- z-index: 1 ;
40+ z-index: 99999999999999 ;
4341` ;
4442
4543export const Centered = styled . div `
@@ -89,6 +87,8 @@ export const AccountContainer = styled.div`
8987` ;
9088
9189export const UserMenuContainer = styled . div `
90+ display: absolute;
91+ z-index: 999999999999;
9292 margin: 5px 0;
9393 margin-right: 0;
9494 font-size: 0.8rem;
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ const ContentSplit: React.FC = () => {
9494 right : 0 ,
9595 bottom : bottomOffset ,
9696 height : statusBar ? 'auto' : 'calc(100% - 3.5rem)' ,
97+ zIndex : 999999 ,
9798 } }
9899 >
99100 < SplitPane
You can’t perform that action at this time.
0 commit comments