Skip to content

Commit

Permalink
Improve visual clarity of unpublished draft pages in page tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
djohalo2 committed Dec 11, 2024
1 parent cb08235 commit e4a138c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PageTreeViewItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const PageTreeViewItem = ({
onMouseLeave={() => setIsHovered(false)}
onClick={onItemClick}>
<Flex align="center" gap={3}>
<UrlText isDisabled={isDisabled} textOverflow="ellipsis">
<UrlText isDisabled={isDisabled || (!page.isPublished && page.isDraft)} textOverflow="ellipsis">
{parentPath ? page.slug?.current : getRootPageSlug(page, config) ?? '/'}
</UrlText>
{!isDisabled && (isHovered || hasActionOpen) && (
Expand Down

0 comments on commit e4a138c

Please sign in to comment.