fix(home): 修复节日速查显示问题
Publish Mini Program Dev Version / publish (push) Successful in 45s

1. 节日速查显示最近10条(之前只显示3条)
2. 修复右侧'还有XX天'溢出问题
   - fest-left 添加 flex-shrink: 0 和 min-width
   - 确保文字不会溢出屏幕
This commit is contained in:
gouki
2026-08-11 19:16:49 +00:00
parent 9ccab93c5b
commit 0256f4e7f3
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ Page({
const termTime = dayInfo.solarTerm ? (SOLAR_TERM_TIMES[dayInfo.solarTerm] || '') : '';
const isFirstOrFifteen = this.data.highlightLunar && (dayInfo.lunarDay === 1 || dayInfo.lunarDay === 15);
const nextBuddhist = this.data.showBuddhist ? getNextBuddhistFestival(y, m, d) : null;
const upcoming = getUpcomingFestivals(5, y, m, d);
const upcoming = getUpcomingFestivals(10, y, m, d);
return {
key: fmt(y, m, d),
dayInfo, almanac, legalHoliday, workday, termTime,