Skip to content

Commit

Permalink
ui: fix newspaper banners UI
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Oct 22, 2024
1 parent 664466a commit 7a7cd62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/apps/desktop/src/models/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ export function usePublishDraft(
)
capabilityId = capability.id
}
console.log(`== ~ mutationFn: ~ allChanges:`, allChanges)
const publishedDoc =
await grpcClient.documents.createDocumentChange({
signingKeyName: draft.signingAccount,
Expand Down
11 changes: 7 additions & 4 deletions frontend/packages/ui/src/newspaper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export function BannerNewspaperCard({
{...baseCardStyles}
flexDirection="column"
marginTop="$4"
minHeight={340}
minHeight={200}
maxHeight={300}
$gtMd={{flexDirection: "row"}}
{...linkProps}
>
Expand Down Expand Up @@ -99,9 +100,11 @@ function NewspaperCardContent({
}, [entity?.document]);
return (
<YStack padding={banner ? "$5" : "$3"} gap="$3" f={1}>
<SizableText size={banner ? "$8" : "$5"} fontWeight="bold">
{entity?.document?.metadata?.name}
</SizableText>
<YStack overflow="hidden" maxHeight={(banner ? 30 : 23) * 3}>
<SizableText size={banner ? "$8" : "$5"} fontWeight="bold">
{entity?.document?.metadata?.name}
</SizableText>
</YStack>
<YStack overflow="hidden" maxHeight={(banner ? 27 : 21) * 3}>
<SizableText
color="$color10"
Expand Down

0 comments on commit 7a7cd62

Please sign in to comment.