From d2df08f1408890f8b048ccc1eb4c9b69b2b2952d Mon Sep 17 00:00:00 2001 From: thislight Date: Tue, 5 Nov 2024 16:20:13 +0800 Subject: [PATCH] RegularToot: supports bot mark --- src/timelines/RegularToot.tsx | 28 +++++++++++++++++----------- src/timelines/toot.module.css | 14 +++++++++----- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/src/timelines/RegularToot.tsx b/src/timelines/RegularToot.tsx index 5984180..35809df 100644 --- a/src/timelines/RegularToot.tsx +++ b/src/timelines/RegularToot.tsx @@ -20,6 +20,7 @@ import { StarOutline, Bookmark, Share, + SmartToySharp, } from "@suid/icons-material"; import { useTimeSource } from "../platform/timesrc.js"; import { resolveCustomEmoji } from "../masto/toot.js"; @@ -151,17 +152,22 @@ function TootAuthorGroup(
- { - createRenderEffect(() => { - e.innerHTML = resolveCustomEmoji( - toot().account.displayName, - toot().account.emojis, - ); - }); - }} - /> +
+ + + + { + createRenderEffect(() => { + e.innerHTML = resolveCustomEmoji( + toot().account.displayName, + toot().account.emojis, + ); + }); + }} + /> +