查看详情改为Read More

This commit is contained in:
jingrow 2025-08-23 14:17:30 +08:00
parent 8d4febd994
commit d3f1fe59eb
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ export default async function CategoryItems() {
<span className="bg"></span>
<figcaption className="group-hover:opacity-100 absolute w-full h-full opacity-0 text-center px-4 py-3 inset-0 z-[5] pointer-events-none p-2">
<h5 className="from-top !mb-0 absolute w-full translate-y-[-80%] p-[.75rem_1rem] left-0 top-2/4">
查看详情
Read More
</h5>
</figcaption>
</Link>

View File

@ -170,7 +170,7 @@ export default function PageItems({ page_slug = "", page_size = 8, columns = 4 }
<span className="bg"></span>
<figcaption className="group-hover:opacity-100 absolute w-full h-full opacity-0 text-center px-4 py-3 inset-0 z-[5] pointer-events-none p-2">
<h5 className="from-top !mb-0 absolute w-full translate-y-[-80%] p-[.75rem_1rem] left-0 top-2/4">
查看详情
Read More
</h5>
</figcaption>
</Link>

View File

@ -22,7 +22,7 @@ export default function SwiperItemsUI({ data, items, ...props }) {
const subtitle = data?.subtitle || props.subtitle;
const category_slug = data?.t3 || props.category_slug || "";
const columns = data?.t5 || props.columns || 4;
const button_text = data?.button_text || props.button_text || "查看详情";
const button_text = data?.button_text || props.button_text || "Read More";
const rows = (data?.p1 && !isNaN(Number(data.p1))) ? Number(data.p1) : (props.rows || 1);
// Loading and error states are now handled by the server component and React Suspense.