mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 10:55:57 +08:00
UI: Make the Admin menu sidebar colors on hover consistent (#2778)
* ui: overwrite default antd menu-item hover colors for consistency * ui fix: make the hover color of icon and text consistent in admin sidebar * fix: make the 'followers' menuitem icon consistent with other sidebar icons
This commit is contained in:
@ -61,6 +61,10 @@ const EditOutlined = dynamic(() => import('@ant-design/icons/EditOutlined'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const FediverseOutlined = dynamic(() => import('../../assets/images/icons/fediverse.svg'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export type MainLayoutProps = {
|
||||
children: ReactNode;
|
||||
};
|
||||
@ -232,12 +236,15 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
|
||||
key: 'fediverse-followers',
|
||||
label: <Link href="/admin/federation/followers">Followers</Link>,
|
||||
icon: (
|
||||
<img
|
||||
alt="fediverse icon"
|
||||
src="/img/fediverse-black.png"
|
||||
width="17rem"
|
||||
style={{ opacity: 0.6, position: 'relative', top: '-1px' }}
|
||||
/>
|
||||
<span
|
||||
role="img"
|
||||
aria-label="message"
|
||||
className="anticon anticon-message ant-menu-item-icon"
|
||||
>
|
||||
{/* Wrapping the icon in span for consistency with other icons used
|
||||
directly from antd */}
|
||||
<FediverseOutlined />
|
||||
</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user