mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-11 13:20:37 +02:00
small tweak to compact notes
This commit is contained in:
parent
c3dc700b3a
commit
5b0ab0a1a8
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Box, BoxProps } from "@chakra-ui/react";
|
||||
import { Box, BoxProps, Text } from "@chakra-ui/react";
|
||||
|
||||
import { DraftNostrEvent, NostrEvent } from "../types/nostr-event";
|
||||
import { EmbedableContent, embedUrls, truncateEmbedableContent } from "../helpers/embeds";
|
||||
@ -36,7 +36,14 @@ export const CompactNoteContent = React.memo(
|
||||
<LightboxProvider>
|
||||
<Box whiteSpace="pre-wrap" {...props}>
|
||||
{truncated}
|
||||
{truncated !== content ? "..." : null}
|
||||
{truncated !== content ? (
|
||||
<>
|
||||
<span>...</span>
|
||||
<Text as="span" fontWeight="bold" ml="4">
|
||||
Show More
|
||||
</Text>
|
||||
</>
|
||||
) : null}
|
||||
</Box>
|
||||
</LightboxProvider>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user