Skip to content

Commit

Permalink
Wrap separator and text inside of text to glue it together
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Dec 5, 2023
1 parent fdad0cc commit 3dd6fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function Breadcrumbs({breadcrumbs}: BreadcrumbsProps) {
/>
</View>
) : (
<>
<Text>
{index !== 0 && <Text style={separatorStyle}>/</Text>}
<Text style={style}>{breadcrumb.text}</Text>
</>
</Text>
)}
</Fragment>
);
Expand Down
1 change: 1 addition & 0 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ const styles = (theme: ThemeColors) =>

breadcrumbSeparator: {
marginTop: 0,
marginRight: 4,
color: colors.darkIcons,
fontSize: variables.fontSizeXLarge,
},
Expand Down

0 comments on commit 3dd6fca

Please sign in to comment.