mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
Resolve favicon locally (WIP)
This commit is contained in:
parent
0cb14f3f6c
commit
4688986901
13 changed files with 91 additions and 30 deletions
|
|
@ -11,10 +11,10 @@ import ActiveUsers from './ActiveUsers';
|
|||
import Arrow from 'assets/arrow-right.svg';
|
||||
import styles from './WebsiteHeader.module.css';
|
||||
|
||||
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
||||
export default function WebsiteHeader({ websiteId, title, favicon, showLink = false }) {
|
||||
const header = showLink ? (
|
||||
<>
|
||||
<Favicon domain={domain} />
|
||||
<Favicon url={favicon} />
|
||||
<Link
|
||||
className={styles.titleLink}
|
||||
href="/website/[...id]"
|
||||
|
|
@ -25,7 +25,7 @@ export default function WebsiteHeader({ websiteId, title, domain, showLink = fal
|
|||
</>
|
||||
) : (
|
||||
<>
|
||||
<Favicon domain={domain} />
|
||||
<Favicon url={favicon} />
|
||||
<OverflowText tooltipId={`${websiteId}-title`}>{title}</OverflowText>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue