no shift on focus
pull/5370/head
lianahus 1 year ago committed by Aniket
parent f6c359015e
commit a2da916dc4
  1. 2
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  2. 2
      libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx
  3. 4
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -97,7 +97,7 @@ module.exports = {
.switchEnvironment('vm-london') .switchEnvironment('vm-london')
.click('*[data-id="terminalClearConsole"]') // clear the terminal .click('*[data-id="terminalClearConsole"]') // clear the terminal
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.click('*[data-id="treeViewDivtreeViewItem"]') // make sure we create the file at the root folder .click('*[data-id="treeViewDivMenu"]') // make sure we create the file at the root folder
.addFile('deployWithEthersJs.js', { content: deployWithEthersJs }) .addFile('deployWithEthersJs.js', { content: deployWithEthersJs })
// .openFile('deployWithEthersJs.js') // .openFile('deployWithEthersJs.js')
.pause(1000) .pause(1000)

@ -24,7 +24,7 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
) : icon ? ( ) : icon ? (
<div className={`pr-2 pl-2 ${icon} caret caret_tv`}></div> <div className={`pr-2 pl-2 ${icon} caret caret_tv`}></div>
) : null} ) : null}
<span className="w-100 pl-3">{label}</span> <span className="w-100 ml-1 pl-2">{label}</span>
</div> </div>
{isExpanded ? children : null} {isExpanded ? children : null}
</li> </li>

@ -85,8 +85,8 @@ export const FileRender = (props: RenderFileProps) => {
return ( return (
<TreeViewItem <TreeViewItem
id={`treeViewItem${file.path}`} id={`treeViewItem${file.path}`}
iconX="pr-2 fa fa-folder" iconX="mr-2 fa fa-folder"
iconY={props.expandPath.includes(file.path) ? 'pr-0 fa fa-folder-open' : 'pr-0 fa fa-folder'} iconY={props.expandPath.includes(file.path) ? 'fa fa-folder-open' : 'fa fa-folder'}
key={`${file.path + props.index}`} key={`${file.path + props.index}`}
label={ label={
<> <>

Loading…
Cancel
Save