Skip to content

Commit

Permalink
Add back truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed May 29, 2023
1 parent bb94a22 commit 2ba722b
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ export default function SidebarNavigationScreenPages() {
icon={ home }
withChevron
>
{ decodeEntities(
homeTemplate.title?.rendered
) ?? __( '(no title)' ) }
<Truncate numberOfLines={ 1 }>
{ decodeEntities(
homeTemplate.title?.rendered
) ?? __( '(no title)' ) }
</Truncate>
</PageItem>
) }
{ pages?.map( ( item ) => {
Expand All @@ -131,9 +133,11 @@ export default function SidebarNavigationScreenPages() {
icon={ itemIcon }
withChevron
>
{ decodeEntities(
item.title?.rendered
) ?? __( '(no title)' ) }
<Truncate numberOfLines={ 1 }>
{ decodeEntities(
item.title?.rendered
) ?? __( '(no title)' ) }
</Truncate>
</PageItem>
);
} ) }
Expand All @@ -146,9 +150,11 @@ export default function SidebarNavigationScreenPages() {
icon={ layout }
withChevron
>
{ decodeEntities(
item.title?.rendered
) ?? __( '(no title)' ) }
<Truncate numberOfLines={ 1 }>
{ decodeEntities(
item.title?.rendered
) ?? __( '(no title)' ) }
</Truncate>
</PageItem>
) ) }
<SidebarNavigationItem
Expand Down

0 comments on commit 2ba722b

Please sign in to comment.