TootContent: renderas section element
This commit is contained in:
parent
ad0076156b
commit
d66bc8ffe1
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ function preventDefault(event: Event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TootContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
|
export type TootContentProps = JSX.HTMLAttributes<HTMLElement> & {
|
||||||
source?: string;
|
source?: string;
|
||||||
emojis?: mastodon.v1.CustomEmoji[];
|
emojis?: mastodon.v1.CustomEmoji[];
|
||||||
mentions: mastodon.v1.StatusMention[];
|
mentions: mastodon.v1.StatusMention[];
|
||||||
|
@ -58,7 +58,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<section
|
||||||
ref={(ref) => {
|
ref={(ref) => {
|
||||||
createRenderEffect(() => {
|
createRenderEffect(() => {
|
||||||
const finder = clientFinder();
|
const finder = clientFinder();
|
||||||
|
@ -104,7 +104,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
|
||||||
}
|
}
|
||||||
></div>
|
></div>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue