feat(home): ปุ่ม "แสดงโรงหนังเพิ่มเติม" + ปุ่ม "แสดงโรงหนังน้อยลง"

- เปลี่ยนข้อความปุ่มจาก "แสดงเพิ่ม" → "แสดงโรงหนังเพิ่มเติม" (en: Show more cinemas)
- เมื่อแสดงครบแล้วมีปุ่ม "แสดงโรงหนังน้อยลง" (en: Show fewer cinemas) ย่อกลับเหลือ 4 ใบ
  แล้วเลื่อนกลับไปที่หัวข้อผลลัพธ์ (เคารพ prefers-reduced-motion)
- i18n: เพิ่ม list.showLess ทั้ง TH/EN · ปรับ list.showMore
- อัปเดต term override ใน content.json (site.terms) ให้ตรงกัน — term ทับค่าใน messages.ts
- DESIGN.md: บันทึกกฎ "term จากหลังบ้าน override messages" (เคสที่ทำให้แก้คำแล้วหน้าไม่เปลี่ยน)
This commit is contained in:
Bkk1234 committed 2026-11-16 00:20:11 +07:00
1 parent 42572020d8
commit 2e794cd365
3 files changed
+23 -3

No files matched your search

+17 -1
View File
@@ -185,12 +185,28 @@ export default function HomeRoute() {
<button
type="button"
onClick={() => setShowAll(true)}
className="h-10 w-[200px] rounded-lg border border-[#8F0808] bg-[#8F0808] transition hover:bg-[#a30a0a]"
className="h-10 w-[220px] rounded-lg border border-[#8F0808] bg-[#8F0808] transition hover:bg-[#a30a0a]"
>
{messages.list.showMore}
</button>
</Reveal>
) : null}
{showAll && ordered.length > INITIAL_VISIBLE ? (
<Reveal kind="fade" className="flex justify-center pt-2">
<button
type="button"
onClick={() => {
setShowAll(false);
// ย่อกลับแล้วพาผู้ใช้ขึ้นไปที่หัวข้อผลลัพธ์ ไม่ให้ค้างอยู่ท้ายหน้า
scrollIntoViewRespectMotion(resultsRef.current);
}}
className="h-10 w-[220px] rounded-lg border border-[#303030] px-4 text-sm transition hover:border-[#A92626] hover:text-[#D47272]"
>
{messages.list.showLess}
</button>
</Reveal>
) : null}
</section>
</main>
</SiteShell>