Skip to content

Commit

Permalink
fix(templates): website remove maxDepth from references in link field (
Browse files Browse the repository at this point in the history
…#9702)

Removes maxDepth from link fields which can cause issues sometimes
depending on how deep the reference is

Also removes bottom border on website header.
  • Loading branch information
paulpopus authored Dec 3, 2024
1 parent 643c92d commit d2007b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion templates/website/src/Header/Component.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const HeaderClient: React.FC<HeaderClientProps> = ({ header }) => {

return (
<header className="container relative z-20 " {...(theme ? { 'data-theme': theme } : {})}>
<div className="py-8 border-b border-border flex justify-between">
<div className="py-8 flex justify-between">
<Link href="/">
<Logo loading="eager" priority="high" className="invert dark:invert-0" />
</Link>
Expand Down
1 change: 0 additions & 1 deletion templates/website/src/fields/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export const link: LinkType = ({ appearances, disableLabel = false, overrides =
condition: (_, siblingData) => siblingData?.type === 'reference',
},
label: 'Document to link to',
maxDepth: 1,
relationTo: ['pages'],
required: true,
},
Expand Down

0 comments on commit d2007b1

Please sign in to comment.