Skip to content

Commit

Permalink
Move text to its own styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Oct 10, 2023
1 parent 2ffc3e5 commit 6edffa5
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const MobileNavigation: FC<MobileNavigationProps> = ({ menu, panel, showP
<MobileAddonsDrawer>{panel}</MobileAddonsDrawer>
<Button onClick={() => setMobileMenuOpen(!isMobileMenuOpen)} title="Open navigation menu">
<Icons icon="menu" />
<p>{fullStoryName}</p>
<Text>{fullStoryName}</Text>
</Button>
{showPanel && (
<DrawerIconButton onClick={() => setMobilePanelOpen(true)} title="Open addon panel">
Expand Down Expand Up @@ -91,11 +91,11 @@ const Button = styled.button(({ theme }) => ({
height: 14,
flexShrink: 0,
},

'> p': {
display: '-webkit-box',
WebkitLineClamp: 1,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
},
}));

const Text = styled.p({
display: '-webkit-box',
WebkitLineClamp: 1,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
});

0 comments on commit 6edffa5

Please sign in to comment.