alignment of sign in

ffff
lianahus 7 months ago committed by yann300
parent dc6039dc14
commit 6c35e7904e
  1. 10
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -1142,6 +1142,7 @@ export function Workspace() {
</Dropdown> </Dropdown>
</span> </span>
) : null} ) : null}
<div className='d-flex w-100 justify-content-between'>
<span className="d-flex"> <span className="d-flex">
<label className="pl-2 form-check-label" style={{ wordBreak: 'keep-all' }}> <label className="pl-2 form-check-label" style={{ wordBreak: 'keep-all' }}>
{(platform == appPlatformTypes.desktop) ? ( {(platform == appPlatformTypes.desktop) ? (
@ -1170,14 +1171,12 @@ export function Workspace() {
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={<FormattedMessage id="filePanel.logInGithub" />} tooltipText={<FormattedMessage id="filePanel.logInGithub" />}
> >
<div className='d-flex'>
<i onClick={() => logInGithub() } className="fa-brands fa-github-alt text-success ml-2 align-self-center" style={{ fontSize: '1.1rem' }} aria-hidden="true"></i> <i onClick={() => logInGithub() } className="fa-brands fa-github-alt text-success ml-2 align-self-center" style={{ fontSize: '1.1rem' }} aria-hidden="true"></i>
<span onClick={() => logInGithub() } className="ml-1 text-success"> Sign in </span>
</div>
</CustomTooltip> </CustomTooltip>
} }
{
!state.loggedInGithub && <span onClick={() => logInGithub() } className="ml-1 text-success"> Sign in </span>
}
{ {
state.loggedInGithub && <CustomTooltip state.loggedInGithub && <CustomTooltip
placement="right" placement="right"
@ -1190,6 +1189,7 @@ export function Workspace() {
} }
</span> </span>
</div> </div>
</div>
<div className='mx-2'> <div className='mx-2'>
{(platform !== appPlatformTypes.desktop) ? ( {(platform !== appPlatformTypes.desktop) ? (
<Dropdown id="workspacesSelect" data-id="workspacesSelect" onToggle={toggleDropdown} show={showDropdown}> <Dropdown id="workspacesSelect" data-id="workspacesSelect" onToggle={toggleDropdown} show={showDropdown}>

Loading…
Cancel
Save