mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-20 14:39:34 +02:00
Improve styling
This commit is contained in:
@@ -151,7 +151,7 @@ export default function Hero() {
|
|||||||
<Stack
|
<Stack
|
||||||
direction={'row'}
|
direction={'row'}
|
||||||
alignItems={'center'}
|
alignItems={'center'}
|
||||||
justifyContent={'stretch'}
|
justifyContent={'space-between'}
|
||||||
width={'100%'}
|
width={'100%'}
|
||||||
>
|
>
|
||||||
<Stack direction={'row'} spacing={2} alignItems={'center'}>
|
<Stack direction={'row'} spacing={2} alignItems={'center'}>
|
||||||
@@ -170,6 +170,11 @@ export default function Hero() {
|
|||||||
toggleBookmarked(option);
|
toggleBookmarked(option);
|
||||||
setBookmarkedToolPaths(getBookmarkedToolPaths());
|
setBookmarkedToolPaths(getBookmarkedToolPaths());
|
||||||
}}
|
}}
|
||||||
|
color={
|
||||||
|
isBookmarked(option)
|
||||||
|
? theme.palette.primary.main
|
||||||
|
: theme.palette.grey[500]
|
||||||
|
}
|
||||||
icon={
|
icon={
|
||||||
isBookmarked(option)
|
isBookmarked(option)
|
||||||
? 'mdi:bookmark'
|
? 'mdi:bookmark'
|
||||||
@@ -185,6 +190,9 @@ export default function Hero() {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
{bookmarkedToolPaths.length > 0 && (
|
||||||
|
<Typography fontSize={{ xs: 20, md: 25 }}>Bookmarked tools:</Typography>
|
||||||
|
)}
|
||||||
<Grid container spacing={2} mt={2}>
|
<Grid container spacing={2} mt={2}>
|
||||||
{displayedTools.map((tool) => (
|
{displayedTools.map((tool) => (
|
||||||
<Grid
|
<Grid
|
||||||
|
Reference in New Issue
Block a user