Skip to content

Commit

Permalink
Merge pull request #5281 from ethereum/desktoptitle
Browse files Browse the repository at this point in the history
placement of folder name on desktop
  • Loading branch information
bunsenstraat authored Nov 6, 2024
2 parents e148ece + 2ce6a91 commit ea413f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ElectronMenu = () => {
>
<div className="recentfolder pb-1">
<span onClick={async () => { await openFolderElectron(folder) }} className="pl-2 recentfolder_name pr-2">{lastFolderName(folder)}</span>
<span onClick={async () => { await openFolderElectron(folder) }} data-id={{ folder }} className="recentfolder_path pr-2">{folder}</span>
<span onClick={async () => { await openFolderElectron(folder) }} data-id={`recent_folder_${folder}`} className="recentfolder_path pr-2">{folder}</span>
<i
onClick={() => {
global.dispatchRemoveRecentFolder(folder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ export const ElectronWorkspaceName = (props: ElectronWorkspaceNameProps) => {

return (
(dir === undefined || dir === '') ? <></> :
<div className="d-flex align-items-baseline">
<div className="d-flex align-items-baseline mt-2">
<CustomTooltip
placement="bottom"
tooltipId="workspace-name"
tooltipClasses="text-nowrap"
tooltipText={dir}
>
<div>{parsePath()}</div>
<div
style={{
overflow: 'hidden',
textOverflow: 'ellipsis',
flexGrow: 1,
}}

>{parsePath()}</div>
</CustomTooltip>
<CustomTooltip
placement="top"
Expand Down
4 changes: 2 additions & 2 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export function Workspace() {
<span className="d-flex">
<label className="pl-2 form-check-label" style={{ wordBreak: 'keep-all' }}>
{(platform == appPlatformTypes.desktop) ? (
<ElectronWorkspaceName plugin={global.plugin} path={global.fs.browser.currentLocalFilePath} />
null
) : <FormattedMessage id='filePanel.workspace' />}
</label>
{selectedWorkspace && selectedWorkspace.name === 'code-sample' && <CustomTooltip
Expand Down Expand Up @@ -1143,7 +1143,7 @@ export function Workspace() {
)}
</Dropdown.Menu>
</Dropdown>
):null}
):<ElectronWorkspaceName plugin={global.plugin} path={global.fs.browser.currentLocalFilePath} />}
</div>
</div>
</header>
Expand Down

0 comments on commit ea413f4

Please sign in to comment.