fix: long post tags
This commit is contained in:
@@ -24,7 +24,7 @@ export const PostMeta: React.FC<{
|
||||
<div className="text-zinc-400 mt-4 xlog-post-meta space-x-5 flex items-center">
|
||||
<time
|
||||
dateTime={formatToISO(page.date_published)}
|
||||
className="xlog-post-date"
|
||||
className="xlog-post-date whitespace-nowrap"
|
||||
>
|
||||
{formatDate(
|
||||
page.date_published,
|
||||
@@ -34,7 +34,7 @@ export const PostMeta: React.FC<{
|
||||
</time>
|
||||
{page.tags?.filter((tag) => tag !== "post" && tag !== "page").length ? (
|
||||
<>
|
||||
<span className="xlog-post-tags space-x-1">
|
||||
<span className="xlog-post-tags space-x-1 truncate min-w-0">
|
||||
{page.tags
|
||||
?.filter((tag) => tag !== "post" && tag !== "page")
|
||||
.map((tag) => (
|
||||
|
||||
@@ -40,14 +40,14 @@ export const SiteHome: React.FC<{
|
||||
href={`/${post.slug || post.id}`}
|
||||
className="xlog-post hover:bg-zinc-100 bg-white transition-colors px-5 py-7 -mx-5 first:-mt-5 sm:rounded-xl flex flex-col sm:flex-row items-center"
|
||||
>
|
||||
<div className="flex-1 flex justify-center flex-col w-full sm:w-auto">
|
||||
<div className="flex-1 flex justify-center flex-col w-full min-w-0">
|
||||
<h3 className="xlog-post-title text-2xl font-bold">
|
||||
{post.title}
|
||||
</h3>
|
||||
<div className="xlog-post-meta text-sm text-zinc-400 mt-1 space-x-4 flex items-center">
|
||||
<div className="xlog-post-meta text-sm text-zinc-400 mt-1 space-x-4 flex items-center mr-8">
|
||||
<time
|
||||
dateTime={formatToISO(post.date_published)}
|
||||
className="xlog-post-date"
|
||||
className="xlog-post-date whitespace-nowrap"
|
||||
>
|
||||
{formatDate(
|
||||
post.date_published,
|
||||
@@ -58,7 +58,7 @@ export const SiteHome: React.FC<{
|
||||
{!!post.tags?.filter(
|
||||
(tag) => tag !== "post" && tag !== "page",
|
||||
).length && (
|
||||
<span className="xlog-post-tags space-x-1">
|
||||
<span className="xlog-post-tags space-x-1 truncate min-w-0">
|
||||
{post.tags
|
||||
?.filter((tag) => tag !== "post" && tag !== "page")
|
||||
.map((tag) => (
|
||||
|
||||
Reference in New Issue
Block a user