Skip to content

Commit

Permalink
Add ProjectList to fragment display
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Jun 29, 2023
1 parent f7d93a8 commit 6e50392
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion src/fragmentarium/ui/fragment/CuneiformFragment.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

section
padding-bottom: 1rem

&__markup-section
text-align: justify

.type-abbreviation
display: none

&__info section
margin-bottom: 1rem
2 changes: 1 addition & 1 deletion src/fragmentarium/ui/fragment/CuneiformFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const CuneiformFragment: FunctionComponent<CuneiformFragmentProps> = ({
return (
<Container fluid>
<Row>
<Col md={2}>
<Col md={2} className={'CuneiformFragment__info'}>
<ErrorBoundary>
<Info
fragment={fragment}
Expand Down
12 changes: 7 additions & 5 deletions src/fragmentarium/ui/info/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import OrganizationLinks from 'fragmentarium/ui/info/OrganizationLinks'
import UncuratedReferences from 'fragmentarium/ui/info/UncuratedReferences'
import { Fragment, UncuratedReference } from 'fragmentarium/domain/fragment'
import FragmentService from 'fragmentarium/application/FragmentService'
import { Row } from 'react-bootstrap'
import { ReferencesHelp } from 'bibliography/ui/ReferencesHelp'
import './info.sass'
import { ProjectList } from 'fragmentarium/ui/info/ResearchProjects'

interface Props {
fragment: Fragment
Expand All @@ -35,10 +35,8 @@ export default function Info({
fragmentService={fragmentService}
/>
<section>
<Row>
<h3>References</h3>
<ReferencesHelp className="info__help" />
</Row>
<h3>References</h3>
<ReferencesHelp className="info__help" />
<ReferenceList references={fragment.references} />
{fragment.hasUncuratedReferences && (
<UncuratedReferences
Expand All @@ -48,6 +46,10 @@ export default function Info({
/>
)}
</section>
<section>
<h3>Projects</h3>
<ProjectList fragment={fragment} />
</section>
<Record record={fragment.uniqueRecord} />
<OrganizationLinks fragment={fragment} />
</>
Expand Down
1 change: 0 additions & 1 deletion src/fragmentarium/ui/info/OrganizationLinks.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}

.OrganizationLinks__image {
border: solid 1px black;
height: auto;
max-height: 3.5em;
max-width: 100%;
Expand Down

0 comments on commit 6e50392

Please sign in to comment.