Skip to content

Commit

Permalink
style: changes in skeletons and other details
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Aug 13, 2024
1 parent 4d05afe commit 0af66bd
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/components/MostViewed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ export function MostViewed() {
my='1'
fontSize='sm'
_hover={{ color: 'green.500', outline: 'none' }}
sx={{
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
overflow: 'hidden',
textOverflow: 'ellipsis',
'-webkit-line-clamp': '2',
lineHeight: 1.5,
maxHeight: 'calc(1.5em * 2)',
}}
>
{title}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/MySliderCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function MySliderCategories() {
<Box
id='slider'
display='flex'
w='5xl'
w={{ base: '68rem', '2xl': '84rem' }}
overflowX={{ base: 'auto', md: 'hidden' }}
scrollBehavior='smooth'
flexDirection='row'
Expand Down
11 changes: 10 additions & 1 deletion src/components/cards/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,21 @@ export function Card({
>
<Box
w='full'
maxW='240px'
maxW={{ base: '130px', lg: '210px' }}
fontSize={{ base: 'xs', sm: 'md' }}
fontWeight='400'
mx='1'
mb='2'
textTransform='uppercase'
sx={{
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
overflow: 'hidden',
textOverflow: 'ellipsis',
'-webkit-line-clamp': '2',
lineHeight: 1.5,
maxHeight: 'calc(1.5em * 2)',
}}
>
{title}
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/skeletons/SkeletonABooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function SkeletonAllBooks({ showTags = true }: SkeletonType) {
)}
<Flex
direction={{ base: 'column', md: 'row' }}
maxW='1800px'
maxW={{ base: '1260px', '2xl': '1560px' }}
m='0 auto'
px={{ base: 5, md: 10, '2xl': 16 }}
>
Expand Down
8 changes: 7 additions & 1 deletion src/components/skeletons/SkeletonTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ export function SkeletonTags() {
return (
<>
<Flex justify='center' overflow='hidden'>
<HStack w='5xl' spacing='4' mt='5' mb='5' mx='10'>
<HStack
w={{ base: '68rem', '2xl': '84rem' }}
spacing='4'
mt='5'
mb='5'
mx='10'
>
{TagCategories}
</HStack>
</Flex>
Expand Down

0 comments on commit 0af66bd

Please sign in to comment.