From e3c25d25ee49c087880286725399b52d863de83a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun <cheeaun@gmail.com> Date: Wed, 3 Apr 2024 09:29:23 +0800 Subject: [PATCH] Add menus to view profile image and header --- src/components/account-info.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 047e75bd..7fc31559 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -11,6 +11,7 @@ import { } from 'preact/hooks'; import punycode from 'punycode'; +import MenuLink from '../components/menu-link'; import { api } from '../utils/api'; import enhanceContent from '../utils/enhance-content'; import getHTMLText from '../utils/getHTMLText'; @@ -582,6 +583,15 @@ function AccountInfo({ <Icon icon="external" /> <span>Go to original profile page</span> </MenuItem> + <MenuDivider /> + <MenuLink href={info.avatar} target="_blank"> + <Icon icon="user" /> + <span>View profile image</span> + </MenuLink> + <MenuLink href={info.header} target="_blank"> + <Icon icon="media" /> + <span>View profile header</span> + </MenuLink> </Menu2> ) : ( <AccountBlock