display icon to the right

pull/5370/head
David Disu 2 years ago
parent f7b04d1265
commit a9c385159d
  1. 9
      libs/remix-ui/workspace/src/lib/components/tooltipInput.tsx
  2. 4
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -19,12 +19,12 @@ const CustomToggle = React.forwardRef(({ children, onClick }: { children?: React
export const CloneWorkspace = () => {
return (
<Dropdown className="inline">
<Dropdown>
<Dropdown.Toggle as={CustomToggle} id="dropdown-custom-components">
<i className="fas fa-cloud-download remixui_menuicon"></i>
<i className="fas fa-cloud-download remixui_menuicon" data-toggle="dropdown"></i>
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.Menu renderOnMount={true}>
{/* <Dropdown.Item eventKey="1">
<FormControl
autoFocus
@ -34,6 +34,7 @@ export const CloneWorkspace = () => {
value={value}
/>
</Dropdown.Item> */}
<div role="tabpanel">
<FormControl
autoFocus
className="mx-3 my-2 w-auto"
@ -41,6 +42,8 @@ export const CloneWorkspace = () => {
onChange={() => {}}
value=''
/>
</div>
</Dropdown.Menu>
</Dropdown>
)

@ -159,6 +159,7 @@ export function Workspace () {
<label className="form-check-label" htmlFor="workspacesSelect">
Workspaces
</label>
<div className="d-flex justify-content-between">
<span className="remixui_menu">
<span
hidden={currentWorkspace === LOCALHOST}
@ -215,8 +216,11 @@ export function Workspace () {
className='far fa-upload remixui_menuicon'
title='Restore Workspaces Backup'>
</span>
</span>
<span className="remixui_menu">
<CloneWorkspace />
</span>
</div>
<select id="workspacesSelect" value={currentWorkspace} data-id="workspacesSelect" onChange={(e) => switchWorkspace(e.target.value)} className="form-control custom-select">
{
global.fs.browser.workspaces

Loading…
Cancel
Save