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