From 35c075752a913fee7cc56f3d8fafb1ecbf5f8dd2 Mon Sep 17 00:00:00 2001 From: john681611 Date: Thu, 13 Jul 2023 18:13:04 +0100 Subject: [PATCH] Clean up nested document node splits --- .../frontend/src/components/DocumentNode/DocumentNode.tsx | 4 ++-- .../src/components/DocumentNode/documentNode.scss | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/application/frontend/src/components/DocumentNode/DocumentNode.tsx b/application/frontend/src/components/DocumentNode/DocumentNode.tsx index 4165477a1..f10f70b53 100644 --- a/application/frontend/src/components/DocumentNode/DocumentNode.tsx +++ b/application/frontend/src/components/DocumentNode/DocumentNode.tsx @@ -143,7 +143,7 @@ export const DocumentNode: FunctionComponent = ({ let lastDocumentName = sortedResults[0].document.name return (
- {idx > 0 &&
} + {idx > 0 &&
}
Which {getDocumentTypeText(type, links[0].document.doctype)}:{/* Risk here of mixed doctype in here causing odd output */}
@@ -151,7 +151,7 @@ export const DocumentNode: FunctionComponent = ({
{sortedResults.map((link, i) =>{const temp = (
- {lastDocumentName !== (link.document.name) &&
} + {lastDocumentName !== (link.document.name) &&} .title.external-link { + div>.title { padding-top: 0; padding-bottom: .25em; } - div:first-child>.title.external-link { + div:first-child>.title { padding-top: .75em; padding-bottom: .25em; } - div>hr+.title.external-link { + div>span+.title { border-top: none; } - div:last-child>.title.external-link { + div:last-child>.title { padding-bottom: .75em; } }