Skip to content

Commit

Permalink
style(resources): move disambiguatingDescription to top of page
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Oct 15, 2024
1 parent d98bdbc commit 3e42750
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/components/resource-sections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,27 @@ const Sections = ({
{data?.author && <ResourceAuthors authors={data.author} />}

<ResourceDates data={data} />
{/*<--- AI Generated short description -->*/}
{data?.disambiguatingDescription && (
<Flex
lineHeight='short'
display='flex'
alignItems='baseline'
flexWrap='wrap'
px={6}
py={4}
>
<MetadataLabel label='Summary' />

<Text lineHeight='short' pt={1} mx={1} verticalAlign='bottom'>
<Tag variant='subtle' size='sm' mr={1} colorScheme='tertiary'>
<TagLeftIcon as={FaWandMagicSparkles}></TagLeftIcon>
<TagLabel>AI Generated</TagLabel>
</Tag>
{data.disambiguatingDescription}
</Text>
</Flex>
)}

{sections.map(section => {
return (
Expand Down Expand Up @@ -150,7 +171,7 @@ const Sections = ({
<>
<ResourceOverview isLoading={isLoading} {...data} />
{/*<--- AI Generated short description -->*/}
{data?.disambiguatingDescription && (
{/* {data?.disambiguatingDescription && (
<Flex
lineHeight='short'
display='flex'
Expand Down Expand Up @@ -179,7 +200,7 @@ const Sections = ({
{data.disambiguatingDescription}
</Text>
</Flex>
)}
)} */}

<ResourceIsPartOf
isLoading={isLoading}
Expand Down

0 comments on commit 3e42750

Please sign in to comment.