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} />
<div className='d-flex justify-content-between mt-3'>
<ShowIf condition={!!links.sourceCode}> <ShowIf condition={!!links.sourceCode}>
<TranslatedExternalLink <TranslatedExternalLink
i18nKey={'landing.versionInfo.sourceCode'} i18nKey={'landing.versionInfo.sourceCode'}
className={'btn btn-sm btn-primary d-block mb-2'} className={'btn btn-primary d-block mb-2'}
href={links.sourceCode} href={links.sourceCode}
/> />
</ShowIf> </ShowIf>
<ShowIf condition={!!links.issues}> <ShowIf condition={!!links.issues}>
<TranslatedExternalLink <TranslatedExternalLink
i18nKey={'landing.versionInfo.issueTracker'} i18nKey={'landing.versionInfo.issueTracker'}
className={'btn btn-sm btn-primary d-block mb-2'} className={'btn btn-primary d-block mb-2'}
href={links.issues} href={links.issues}
/> />
</ShowIf> </ShowIf>
</div>
</Modal.Body> </Modal.Body>
</CommonModal> </CommonModal>
) )