This commit is contained in:
parent
dbaad8bbb3
commit
15fb4cabdf
@ -113,3 +113,7 @@
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gallery:not(:first-child), img:not(:first-child), video:not(:first-child), .link-preview-container:not(:first-child) {
|
||||
margin-top: 10px;
|
||||
}
|
@ -170,9 +170,6 @@ export default function Text({
|
||||
}
|
||||
|
||||
if (element.type === "media" && element.mimeType?.startsWith("image")) {
|
||||
if (i > 0) {
|
||||
chunks.push(<div className="mt10" />);
|
||||
}
|
||||
if (disableMedia ?? false) {
|
||||
chunks.push(<DisableMedia content={element.content} />);
|
||||
} else {
|
||||
@ -234,9 +231,6 @@ export default function Text({
|
||||
element.type === "media" &&
|
||||
(element.mimeType?.startsWith("audio") || element.mimeType?.startsWith("video"))
|
||||
) {
|
||||
if (i > 0) {
|
||||
chunks.push(<div className="mt10" />);
|
||||
}
|
||||
if (disableMedia ?? false) {
|
||||
chunks.push(<DisableMedia content={element.content} />);
|
||||
} else {
|
||||
@ -253,9 +247,6 @@ export default function Text({
|
||||
chunks.push(<CashuNuts token={element.content} />);
|
||||
}
|
||||
if (element.type === "link" || (element.type === "media" && element.mimeType?.startsWith("unknown"))) {
|
||||
if (i > 0 && !disableLinkPreview) {
|
||||
chunks.push(<div className="mt10" />);
|
||||
}
|
||||
chunks.push(
|
||||
<HyperText link={element.content} depth={depth} showLinkPreview={!(disableLinkPreview ?? false)} />,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user