added Using Remix Safely, fixing FE scroll

pull/2792/head
lianahus 2 years ago committed by Aniket
parent 768e4f9697
commit d78d54a7e0
  1. 3
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx
  2. 6
      libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css
  3. 4
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -237,6 +237,9 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
Beware of online videos promoting "liquidity front runner bots".
<a className="pl-2 remixui_home_text" target="__blank" href="https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d">Learn more</a>
</span>
<span className="pl-4 text-danger mt-1">
<a className="remixui_home_text" target="__blank" href="https://remix-ide.readthedocs.io/en/latest/security.html">Using Remix Safely</a>
</span>
</div>
</div>
<div className="mr-4 d-flex">

@ -6,13 +6,7 @@
box-sizing : border-box;
}
.remixui_fileexplorer {
display : flex;
flex-direction : column;
position : relative;
width : 100%;
padding-left : 6px;
padding-right : 6px;
padding-top : 6px;
overflow-y : auto;
}
.remixui_fileExplorerTree {

@ -189,7 +189,7 @@ export function Workspace () {
return (
<div className='px-2 remixui_container'>
<div className='remixui_fileexplorer' data-id="remixUIWorkspaceExplorer" onClick={resetFocus}>
<div className='d-flex flex-column w-100 remixui_fileexplorer' data-id="remixUIWorkspaceExplorer" onClick={resetFocus}>
<div>
<header>
<div className="mb-2">
@ -299,7 +299,7 @@ export function Workspace () {
<div className='h-100 remixui_fileExplorerTree' onFocus={() => { toggleDropdown(false) }}>
<div className='h-100'>
{ global.fs.browser.isRequestingWorkspace || global.fs.browser.isRequestingCloning ? <div className="text-center py-5"><i className="fas fa-spinner fa-pulse fa-2x"></i></div>
: <div className='pl-2 remixui_treeview' data-id='filePanelFileExplorerTree'>
: <div className='h-100 remixui_treeview' data-id='filePanelFileExplorerTree'>
{ (global.fs.mode === 'browser') && (currentWorkspace !== NO_WORKSPACE) &&
<FileExplorer
name={currentWorkspace}

Loading…
Cancel
Save