mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
chore: update view more templates button design
This commit is contained in:
parent
b4ad9c964f
commit
ebda670507
@ -21,9 +21,7 @@ const StyledCard = styled('div', {
|
|||||||
})<{ isDefault?: boolean }>(({ theme, isDefault }) => ({
|
})<{ isDefault?: boolean }>(({ theme, isDefault }) => ({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
width: '100%',
|
|
||||||
height: theme.spacing(10),
|
height: theme.spacing(10),
|
||||||
maxWidth: '30rem',
|
|
||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
backgroundColor: theme.palette.background.elevation1,
|
backgroundColor: theme.palette.background.elevation1,
|
||||||
color: 'inherit',
|
color: 'inherit',
|
||||||
|
@ -74,12 +74,15 @@ const StyledNoTemplatesDescription = styled('p')(({ theme }) => ({
|
|||||||
color: theme.palette.text.secondary,
|
color: theme.palette.text.secondary,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledViewAllTemplates = styled(Box)({
|
const StyledViewMoreButton = styled(Button)(({ theme }) => ({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
height: '100%',
|
height: theme.spacing(10),
|
||||||
});
|
padding: theme.spacing(2),
|
||||||
|
border: `1px solid ${theme.palette.divider}`,
|
||||||
|
borderRadius: theme.spacing(1),
|
||||||
|
}));
|
||||||
|
|
||||||
const StyledLink = styled(RouterLink)({
|
const StyledLink = styled(RouterLink)({
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
@ -174,17 +177,13 @@ export const FeatureStrategyMenuCardsReleaseTemplates = ({
|
|||||||
))}
|
))}
|
||||||
{slicedTemplates.length < templates.length &&
|
{slicedTemplates.length < templates.length &&
|
||||||
templates.length > RELEASE_TEMPLATE_DISPLAY_LIMIT && (
|
templates.length > RELEASE_TEMPLATE_DISPLAY_LIMIT && (
|
||||||
<StyledViewAllTemplates>
|
<StyledViewMoreButton
|
||||||
<Button
|
variant='text'
|
||||||
variant='text'
|
size='small'
|
||||||
size='small'
|
onClick={() => setFilter('releaseTemplates')}
|
||||||
onClick={() =>
|
>
|
||||||
setFilter('releaseTemplates')
|
View more templates
|
||||||
}
|
</StyledViewMoreButton>
|
||||||
>
|
|
||||||
View all available templates
|
|
||||||
</Button>
|
|
||||||
</StyledViewAllTemplates>
|
|
||||||
)}
|
)}
|
||||||
</FeatureStrategyMenuCardsSection>
|
</FeatureStrategyMenuCardsSection>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user