Skip to content

Commit

Permalink
Only show URL of links when hovering over titles or domains
Browse files Browse the repository at this point in the history
since the snipped is already displayed below each link
  • Loading branch information
pH-7 committed May 26, 2024
1 parent fa8b41c commit 2348c4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/components/SearchResultsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,14 @@ export function SearchResultsList({

return (
<ul>
{searchResults.map(([title, snippet, url], index) => (
{searchResults.map(([title, , url], index) => (
<li key={url}>
<Tooltip
id={`search-result-${index}`}
place="top-start"
variant="info"
opacity="1"
style={{ width: "75vw", maxWidth: "600px" }}
>
{snippet}
<br />
<br />
{url}
</Tooltip>
<div
Expand All @@ -92,13 +88,17 @@ export function SearchResultsList({
>
<a
href={url}
data-tooltip-id={`search-result-${index}`}
target="_blank"
data-tooltip-id={`search-result-${index}`}
>
{title}
</a>
{isUserSubscribed ? (
<a href={url} target="_blank">
<a
href={url}
target="_blank"
data-tooltip-id={`search-result-${index}`}
>
<cite
style={{
fontSize: "small",
Expand Down

0 comments on commit 2348c4b

Please sign in to comment.