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!",
"sourceCode": "Read the source code",
"versionInfo": "Version info",
"title": "Your username"
"title": "Running HedgeDoc on version"
}
},
"profile": {

View file

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