Skip to content

Commit 9b1fa55

Browse files
LianaHusAniket-Engg
authored andcommitted
layout update for FE bottom
1 parent cc86ee6 commit 9b1fa55

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

apps/remix-ide/src/app/tabs/locales/en/filePanel.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,6 @@
141141
"filePanel.movingFolderFailed": "Moving Folder Failed",
142142
"filePanel.movingFolderFailedMsg": "Unexpected error while moving folder: {src}",
143143
"filePanel.workspaceActions": "Workspace actions",
144-
"filePanel.saveCodeSample": "This code-sample workspace will not be persisted. Click here to save it."
144+
"filePanel.saveCodeSample": "This code-sample workspace will not be persisted. Click here to save it.",
145+
"filePanel.updateSubmodules": "Update all submodules."
145146
}

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,22 +1343,34 @@ export function Workspace() {
13431343
</div>
13441344
</div>
13451345
</div>
1346-
{selectedWorkspace && (
1346+
{ selectedWorkspace && (
13471347
<div className={`bg-light border-top ${selectedWorkspace.isGitRepo && currentBranch ? 'd-block' : 'd-none'}`} data-id="workspaceGitPanel">
1348-
<div className="d-flex justify-space-between p-1">
1349-
<div className="mr-auto text-uppercase text-dark pt-2 px-1">GIT</div>
1350-
{selectedWorkspace.hasGitSubmodules?
1351-
<div className="pt-1 mr-1">
1352-
{global.fs.browser.isRequestingCloning ? <div style={{ height: 30, minWidth: 165 }} className='btn btn-sm border text-muted small'><i className="fad fa-spinner fa-spin"></i> updating submodules</div> :
1353-
<div style={{ height: 30, minWidth: 165 }} onClick={updateSubModules} data-id='updatesubmodules' className={`btn btn-sm border small ${highlightUpdateSubmodules ? 'text-warning' : 'text-muted'}`}>update submodules</div>}
1354-
</div>
1348+
<div className="d-flex justify-content-between p-1">
1349+
<div className="text-uppercase text-dark pt-1 px-1">GIT</div>
1350+
{ selectedWorkspace.hasGitSubmodules?
1351+
<CustomTooltip
1352+
placement="top"
1353+
tooltipId="updateSubmodules"
1354+
tooltipClasses="text-nowrap"
1355+
tooltipText={<FormattedMessage id="filePanel.updateSubmodules" />}
1356+
>
1357+
<div className="pr-1">
1358+
{global.fs.browser.isRequestingCloning ? <button style={{ height: 30, minWidth: "8rem" }} className='btn btn-sm border text-dark'>
1359+
<i className="fad fa-spinner fa-spin"></i>
1360+
Updating submodules
1361+
</button> :
1362+
<button style={{ height: 30, minWidth: "8rem" }} onClick={updateSubModules} data-id='updatesubmodules' className={`btn btn-sm border ${highlightUpdateSubmodules ? 'text-warning' : 'text-dark'}`}>
1363+
Update submodules
1364+
</button> }
1365+
</div>
1366+
</CustomTooltip>
13551367
: null}
1356-
<div className="pt-1 mr-1" data-id="workspaceGitBranchesDropdown">
1357-
<Dropdown style={{ height: 30, minWidth: 80 }} onToggle={toggleBranches} show={showBranches} drop={'up'}>
1368+
<div className="pt-0 mr-2" data-id="workspaceGitBranchesDropdown">
1369+
<Dropdown style={{ height: 30, width: "7rem" }} onToggle={toggleBranches} show={showBranches} drop={'up'}>
13581370
<Dropdown.Toggle
13591371
as={CustomToggle}
13601372
id="dropdown-custom-components"
1361-
className="btn btn-light btn-block w-100 d-inline-block border border-dark form-control h-100 p-0 pl-2 pr-2 text-dark"
1373+
className="btn btn-sm btn-light btn-block w-100 d-inline-block border border-dark form-control h-100 p-0 pl-2 pr-2 text-dark"
13621374
icon={null}
13631375
>
13641376
{global.fs.browser.isRequestingCloning ? <i className="fad fa-spinner fa-spin"></i> : currentBranch || '-none-'}

0 commit comments

Comments
 (0)