Skip to content

Commit

Permalink
fix: style fixes staging (#986)
Browse files Browse the repository at this point in the history
* fix: style fixes staging

* chore: remove unused import

* chore: remove unwanted layer
  • Loading branch information
jfrader committed Jun 20, 2023
1 parent f6c78da commit 089b5f5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
15 changes: 13 additions & 2 deletions src/components/ui/ProjectStatusLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Icon, Stack, StackDirection, Text, Tooltip } from '@chakra-ui/react'
import {
Icon,
SkeletonText,
Stack,
StackDirection,
Text,
Tooltip,
} from '@chakra-ui/react'
import { HTMLChakraProps } from '@chakra-ui/system'
import { useEffect, useState } from 'react'
import { BsFillCheckCircleFill, BsFillXCircleFill } from 'react-icons/bs'
Expand Down Expand Up @@ -106,7 +113,11 @@ export const ProjectStatusLabel = ({
}, [project])

if (!status) {
return null
return (
<Stack direction={direction} alignItems="center">
<SkeletonText width="80px" skeletonHeight={4} noOfLines={1} />
</Stack>
)
}

const CurrentIcon = ProjectStatusIcons[status]
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projectView/projectMainBody/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ProjectMainBody = () => {
<Box className={classes.detailsContainer} id="project-scroll-container">
<VStack alignItems="center" width="100%" flex="1">
<VStack
spacing={5}
spacing={3}
alignItems="left"
mt={isMobile ? 0 : 5}
maxWidth="1000px"
Expand Down
8 changes: 4 additions & 4 deletions src/pages/projectView/projectMainBody/sections/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Header = forwardRef<HTMLDivElement>((_, ref) => {
return (
<ImageWithReload
width="100%"
maxHeight="471px"
maxHeight="350px"
objectFit="cover"
borderRadius="8px"
src={project.image || undefined}
Expand All @@ -61,7 +61,7 @@ export const Header = forwardRef<HTMLDivElement>((_, ref) => {
return (
<DefaultImage
width="100%"
maxHeight="471px"
maxHeight="350px"
objectFit="cover"
borderRadius="8px"
/>
Expand All @@ -78,8 +78,8 @@ export const Header = forwardRef<HTMLDivElement>((_, ref) => {
objectFit="cover"
src={project.thumbnailImage || undefined}
width="80px"
height="76px"
maxHeight="91px"
height="80px"
maxHeight="80px"
boxShadow="lg"
/>
<VStack
Expand Down

0 comments on commit 089b5f5

Please sign in to comment.