finish fixes

pull/5370/head
Joseph Izang 2 years ago committed by Aniket
parent 16c8c9d780
commit f68b44bd4a
  1. 4
      libs/remix-ui/workspace/src/lib/components/file-render.tsx
  2. 13
      libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css
  3. 4
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -54,13 +54,13 @@ export const FileRender = (props: RenderFileProps) => {
const handleFolderClick = (event: SyntheticEvent) => { const handleFolderClick = (event: SyntheticEvent) => {
event.stopPropagation() event.stopPropagation()
if (props.focusEdit.element !== file.path) props.handleClickFolder(file.path, file.type) if (props.focusEdit.element !== file.path) props.handleClickFolder(file.path, file.type)
props.hideIconsMenu(!props.showIconsMenu) if (props.showIconsMenu === true) props.hideIconsMenu(!props.showIconsMenu)
} }
const handleFileClick = (event: SyntheticEvent) => { const handleFileClick = (event: SyntheticEvent) => {
event.stopPropagation() event.stopPropagation()
if (props.focusEdit.element !== file.path) props.handleClickFile(file.path, file.type) if (props.focusEdit.element !== file.path) props.handleClickFile(file.path, file.type)
props.hideIconsMenu(!props.showIconsMenu) if (props.showIconsMenu === true) props.hideIconsMenu(!props.showIconsMenu)
} }
const handleContextMenu = (event: PointerEvent) => { const handleContextMenu = (event: PointerEvent) => {

@ -113,3 +113,16 @@
#workspacesMenuDropdown > div.custom-dropdown-items { #workspacesMenuDropdown > div.custom-dropdown-items {
min-width: 8rem; min-width: 8rem;
} }
.remixui_menuhr{
}
#workspacesMenuDropdown>div>ul>a:nth-child(6):hover {
background-color: rgba(0,0,0,0)
}
#workspacesMenuDropdown>div>ul>a:nth-child(4):hover {
background-color: rgba(0, 0, 0, 0)
}

@ -391,7 +391,7 @@ export function Workspace () {
<span className="pl-3">{'Rename'}</span> <span className="pl-3">{'Rename'}</span>
</div> </div>
</OverlayTrigger>, </OverlayTrigger>,
<Dropdown.Divider className="border dro pdown-hr" />, <Dropdown.Divider className="border mb-0 mt-0" />,
<OverlayTrigger <OverlayTrigger
placement="right-start" placement="right-start"
overlay={ overlay={
@ -503,7 +503,7 @@ export function Workspace () {
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<span className="d-flex align-items-end"> <span className="d-flex align-items-end">
<label className="pl-1 form-check-label" htmlFor="workspacesSelect"> <label className="pl-1 form-check-label" htmlFor="workspacesSelect">
Workspaces WORKSPACES
</label> </label>
</span> </span>
<span className="remixui_menu remixui_topmenu d-flex justify-content-between align-items-end w-75"> <span className="remixui_menu remixui_topmenu d-flex justify-content-between align-items-end w-75">

Loading…
Cancel
Save