mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-31 19:08:05 +08:00
feat: hover link to show more info
This commit is contained in:
parent
ec0fca2324
commit
d905724c81
@ -185,6 +185,7 @@ function NewsListHot({ query }: Query) {
|
|||||||
href={width < 768 ? item.mobileUrl || item.url : item.url}
|
href={width < 768 ? item.mobileUrl || item.url : item.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
key={item.id}
|
key={item.id}
|
||||||
|
title={item.extra?.hover}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"flex gap-2 items-center mb-2 items-stretch",
|
"flex gap-2 items-center mb-2 items-stretch",
|
||||||
"hover:bg-neutral-400/10 rounded-md pr-1 visited:(text-neutral-400)",
|
"hover:bg-neutral-400/10 rounded-md pr-1 visited:(text-neutral-400)",
|
||||||
@ -226,6 +227,7 @@ function NewsListTimeLine({ query }: Query) {
|
|||||||
<a
|
<a
|
||||||
className={clsx("ml-2 px-1 hover:bg-neutral-400/10 rounded-md visited:(text-neutral-400/80)")}
|
className={clsx("ml-2 px-1 hover:bg-neutral-400/10 rounded-md visited:(text-neutral-400/80)")}
|
||||||
href={width < 768 ? item.mobileUrl || item.url : item.url}
|
href={width < 768 ? item.mobileUrl || item.url : item.url}
|
||||||
|
title={item.extra?.hover}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{item.title}
|
{item.title}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user