Merge pull request #2797 from pterodactyl/matthewpi/breadcrumb-patch-1

Add mb-4 to File Manager Breadcrumb when editing a file
This commit is contained in:
Dane Everitt 2020-12-08 19:56:05 -08:00 committed by GitHub
commit a66ee9673b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,9 @@ export default () => {
<PageContentBlock> <PageContentBlock>
<FlashMessageRender byKey={'files:view'} css={tw`mb-4`}/> <FlashMessageRender byKey={'files:view'} css={tw`mb-4`}/>
<ErrorBoundary> <ErrorBoundary>
<div css={tw`mb-4`}>
<FileManagerBreadcrumbs withinFileEditor isNewFile={action !== 'edit'}/> <FileManagerBreadcrumbs withinFileEditor isNewFile={action !== 'edit'}/>
</div>
</ErrorBoundary> </ErrorBoundary>
{hash.replace(/^#/, '').endsWith('.pteroignore') && {hash.replace(/^#/, '').endsWith('.pteroignore') &&
<div css={tw`mb-4 p-4 border-l-4 bg-neutral-900 rounded border-cyan-400`}> <div css={tw`mb-4 p-4 border-l-4 bg-neutral-900 rounded border-cyan-400`}>