round17+18: Emoji durch Font Awesome ersetzt, Lesezeichen-Kategorie-Vorschlaege, Favicon-Upload

This commit is contained in:
2026-07-23 14:56:40 +02:00
parent 050616a5cf
commit bae9e48fc1
12 changed files with 218 additions and 37 deletions

View File

@@ -1,5 +1,8 @@
import { useState, type KeyboardEvent } from "react";
import type { SearchResult } from "@launchpad/shared";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faStar as faStarSolid, faCheck, faClone } from "@fortawesome/free-solid-svg-icons";
import { faStar } from "@fortawesome/free-regular-svg-icons";
import { Favicon } from "./Favicon.js";
function hexToRgba(hex: string, alpha: number): string | null {
@@ -136,7 +139,7 @@ export function ResultsList({
: "text-black/15 hover:text-amber-400 dark:text-white/15 dark:hover:text-amber-400"
} ${onToggleFavorite ? "" : "cursor-default"}`}
>
<FontAwesomeIcon icon={item.favorite ? faStarSolid : faStar} />
</button>
</div>
</li>
@@ -169,7 +172,7 @@ function CopyButton({ url }: { url: string }) {
className="shrink-0 text-sm leading-none text-black/20 transition-colors hover:text-black/60
dark:text-white/20 dark:hover:text-white/60"
>
{copied ? "✓" : "⧉"}
<FontAwesomeIcon icon={copied ? faCheck : faClone} />
</button>
);
}