Profile urls, scrollbar, ProfilePage refactoring #646

Merged
mmalmi merged 10 commits from mmalmi/snort:main into main 2023-10-09 18:41:32 +00:00
2 changed files with 4 additions and 9 deletions
Showing only changes of commit 15fb4cabdf - Show all commits

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} />);
mmalmi marked this conversation as resolved Outdated

This is just for margin top? Can't we control that without adding an empty div?

This is just for margin top? Can't we control that without adding an empty div?

Yea probably best to use css actually

Yea probably best to use css actually
} 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)} />,
);