enhancement(frontend): inlined buttons

Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
This commit is contained in:
Avinash 2023-04-18 18:36:16 +05:30 committed by Tilman Vatteroth
parent c21b2a7a17
commit 9bf8f57475
2 changed files with 17 additions and 17 deletions

View file

@ -157,7 +157,7 @@
"issueTracker": "Found a bug? Fill an issue!", "issueTracker": "Found a bug? Fill an issue!",
"sourceCode": "Read the source code", "sourceCode": "Read the source code",
"versionInfo": "Version info", "versionInfo": "Version info",
"title": "Your username" "title": "Running HedgeDoc on version"
} }
}, },
"profile": { "profile": {

View file

@ -40,27 +40,27 @@ export const VersionInfoModal: React.FC<CommonModalProps> = ({ onHide, show }) =
<CommonModal <CommonModal
{...cypressId('version-modal')} {...cypressId('version-modal')}
show={show} show={show}
modalSize={'sm'}
onHide={onHide} onHide={onHide}
showCloseButton={true} showCloseButton={true}
titleI18nKey={'landing.versionInfo.title'}> titleI18nKey={'landing.versionInfo.title'}>
<Modal.Body> <Modal.Body>
<h5>HedgeDoc</h5>
<CopyableField content={backendVersion} /> <CopyableField content={backendVersion} />
<ShowIf condition={!!links.sourceCode}> <div className='d-flex justify-content-between mt-3'>
<TranslatedExternalLink <ShowIf condition={!!links.sourceCode}>
i18nKey={'landing.versionInfo.sourceCode'} <TranslatedExternalLink
className={'btn btn-sm btn-primary d-block mb-2'} i18nKey={'landing.versionInfo.sourceCode'}
href={links.sourceCode} className={'btn btn-primary d-block mb-2'}
/> href={links.sourceCode}
</ShowIf> />
<ShowIf condition={!!links.issues}> </ShowIf>
<TranslatedExternalLink <ShowIf condition={!!links.issues}>
i18nKey={'landing.versionInfo.issueTracker'} <TranslatedExternalLink
className={'btn btn-sm btn-primary d-block mb-2'} i18nKey={'landing.versionInfo.issueTracker'}
href={links.issues} className={'btn btn-primary d-block mb-2'}
/> href={links.issues}
</ShowIf> />
</ShowIf>
</div>
</Modal.Body> </Modal.Body>
</CommonModal> </CommonModal>
) )