diff --git a/src/profiles/Profile.tsx b/src/profiles/Profile.tsx index 8a6e6a1..f3a5823 100644 --- a/src/profiles/Profile.tsx +++ b/src/profiles/Profile.tsx @@ -19,6 +19,7 @@ import { CircularProgress, Divider, IconButton, + ListItemAvatar, ListItemIcon, ListItemText, MenuItem, @@ -67,8 +68,6 @@ const Profile: Component = () => { const menuButId = createUniqueId(); const [menuOpen, setMenuOpen] = createSignal(false); - const [subscribeMenuOpen, setSubscribeMenuOpen] = createSignal(false); - let subcribeMenuAnchor: { top: number; right: number; left: number }; const [openSubscribeMenu, subscribeMenuState] = createManagedMenuState(); @@ -192,11 +191,22 @@ const Profile: Component = () => { document.getElementById(menuButId)!.getBoundingClientRect() } > - + + { + const { left, right, top } = + event.currentTarget.getBoundingClientRect(); + openSubscribeMenu({ + left, + right, + top, + e: 1, + }); + }} + > @@ -287,9 +297,21 @@ const Profile: Component = () => { + + + - {session().account?.inf?.displayName || ""} - 's timeline + + createRenderEffect(() => { + e.innerHTML = resolveCustomEmoji( + session().account?.inf?.displayName || "", + session().account?.inf?.emojis ?? [], + ); + }) + } + > + 's Home @@ -320,7 +342,9 @@ const Profile: Component = () => {
- {<>} + + {<>} +