fix: mobile fix

This commit is contained in:
Ivan Rezchikov
2026-07-22 14:38:23 +03:00
parent 00ed4f923b
commit 8aeacaf0ea
+2 -2
View File
@@ -7,8 +7,8 @@ import { formatDate } from "@/lib/utils";
export function NewsCard({ news }: { news: PagePublic }) {
return (
<div className="flex flex-col gap-1">
<Link href={`/news/${news.slug}`} className="w-max">
<h2 className="hover:underline underline-offset-8 decoration-2 cursor-pointer">{news.title}</h2>
<Link href={`/news/${news.slug}`} className="max-w-vh">
<h2 className="hover:underline underline-offset-8 decoration-2 cursor-pointer truncate">{news.title}</h2>
</Link>
<div className="flex flex-col md:flex-row gap-2 md:gap-8 md:items-center">
<div className="flex flex-row gap-4 md:gap-8">