css selector based margin-top
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Martti Malmi 2023-10-09 16:06:47 +03:00
parent dbaad8bbb3
commit 15fb4cabdf
2 changed files with 4 additions and 9 deletions

View File

@ -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;
}

View File

@ -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)} />,
);