update readable view icons

This commit is contained in:
Yee Jia Wei 2023-12-17 17:08:20 +08:00
parent 15c6213840
commit de13a109c6

View File

@ -6,8 +6,6 @@ import {
ArchivedFormat,
LinkIncludingShortenedCollectionAndTags,
} from "@/types/global";
import { faFolder, faLink } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import ColorThief, { RGBColor } from "colorthief";
import DOMPurify from "dompurify";
import Image from "next/image";
@ -174,7 +172,9 @@ export default function ReadableView({ link }: Props) {
target="_blank"
className="hover:opacity-60 duration-100 break-all text-sm flex items-center gap-1 text-neutral w-fit"
>
<FontAwesomeIcon icon={faLink} className="w-4 h-4" />
<i
className="bi-link-45deg"
></i>
{isValidUrl(link?.url || "")
? new URL(link?.url as string).host
@ -189,11 +189,10 @@ export default function ReadableView({ link }: Props) {
href={`/collections/${link?.collection.id}`}
className="flex items-center gap-1 cursor-pointer hover:opacity-60 duration-100 mr-2 z-10"
>
<FontAwesomeIcon
icon={faFolder}
className="w-5 h-5 drop-shadow"
<i
className="bi-folder2 drop-shadow text-2xl"
style={{ color: link?.collection.color }}
/>
></i>
<p
title={link?.collection.name}
className="text-lg truncate max-w-[12rem]"