minor fix

This commit is contained in:
daniel31x13 2024-05-14 12:14:22 -04:00
parent 1a96ca32f9
commit 7442799836
2 changed files with 5 additions and 5 deletions

View File

@ -208,7 +208,7 @@ export default function LinkCard({ link, flipDropdown, editMode }: Props) {
</span> </span>
)} )}
</p> </p>
{link.tags[0] && ( {link.tags && link.tags[0] && (
<> <>
<p className="text-neutral text-lg mt-3 font-semibold">Tags</p> <p className="text-neutral text-lg mt-3 font-semibold">Tags</p>

View File

@ -43,7 +43,7 @@ export default function ReadableView({ link }: Props) {
const router = useRouter(); const router = useRouter();
const { links, getLink } = useLinkStore(); const { getLink } = useLinkStore();
const { collections } = useCollectionStore(); const { collections } = useCollectionStore();
const collection = useMemo(() => { const collection = useMemo(() => {
@ -138,7 +138,7 @@ export default function ReadableView({ link }: Props) {
}, [colorPalette]); }, [colorPalette]);
return ( return (
<div className={`flex flex-col max-w-screen-md h-full mx-auto py-5`}> <div className={`flex flex-col max-w-screen-md h-full mx-auto p-5`}>
<div <div
id="link-banner" id="link-banner"
className="link-banner relative bg-opacity-10 border-neutral-content p-3 border mb-3" className="link-banner relative bg-opacity-10 border-neutral-content p-3 border mb-3"
@ -174,7 +174,7 @@ export default function ReadableView({ link }: Props) {
/> />
)} )}
<div className="flex flex-col"> <div className="flex flex-col">
<p className="text-xl"> <p className="text-xl pr-10">
{unescapeString( {unescapeString(
link?.name || link?.description || link?.url || "" link?.name || link?.description || link?.url || ""
)} )}
@ -212,7 +212,7 @@ export default function ReadableView({ link }: Props) {
{link?.collection.name} {link?.collection.name}
</p> </p>
</Link> </Link>
{link?.tags.map((e, i) => ( {link?.tags?.map((e, i) => (
<Link key={i} href={`/tags/${e.id}`} className="z-10"> <Link key={i} href={`/tags/${e.id}`} className="z-10">
<p <p
title={e.name} title={e.name}