Skip to content

Commit

Permalink
fix(web): Grant - spacing and empty containers (#17330)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
disaerna and kodiakhq[bot] authored Dec 21, 2024
1 parent 8d0e092 commit e0a1eec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/web/screens/Grants/Grant/GrantSidebar/ExtraPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ const ExtraPanel: React.FC<ExtraPanelProps> = ({ grant }) => {
[grant.files, supportLinksPanelData],
)

return (
return filesPanelData.length > 0 ? (
<Box background={'red100'} padding={3} borderRadius="large">
<Stack space={2}>{filesPanelData}</Stack>
</Box>
)
) : null
}

export default ExtraPanel
15 changes: 11 additions & 4 deletions libs/island-ui/core/src/lib/InfoCardGrid/DetailedInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,19 @@ export const DetailedInfoCard = ({
}

return (
<>
{renderHeader()}
{renderContent()}
<Box
display="flex"
justifyContent="spaceBetween"
flexDirection="column"
height="full"
>
<div>
{renderHeader()}
{renderContent()}
</div>
<Box marginTop={3} display="flex" justifyContent="spaceBetween">
{renderTags()}
</Box>
</>
</Box>
)
}

0 comments on commit e0a1eec

Please sign in to comment.