TootContent: renderas section element

This commit is contained in:
thislight 2024-11-25 20:31:21 +08:00
parent ad0076156b
commit d66bc8ffe1
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -17,7 +17,7 @@ function preventDefault(event: Event) {
event.preventDefault();
}
export type TootContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
export type TootContentProps = JSX.HTMLAttributes<HTMLElement> & {
source?: string;
emojis?: mastodon.v1.CustomEmoji[];
mentions: mastodon.v1.StatusMention[];
@ -58,7 +58,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
};
return (
<div
<section
ref={(ref) => {
createRenderEffect(() => {
const finder = clientFinder();
@ -104,7 +104,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
}
></div>
</Show>
</div>
</section>
);
};