diff --git a/app.wxss b/app.wxss index 9946b19..4f145fd 100644 --- a/app.wxss +++ b/app.wxss @@ -129,11 +129,12 @@ image { } @keyframes pageIn { - from { opacity: 0; transform: translateY(20rpx); } - /* `none` (not translateY(0)) so the finished animation leaves NO transform - on .container - any non-none transform creates a containing block that - demotes descendant position:fixed to relative-to-container, breaking - full-screen modals (day-detail / plan-editor / completion) once the - page scrolls past one viewport height. */ - to { opacity: 1; transform: none; } + /* Opacity-only: any transform (even translateY(0) held by animation + fill-mode) makes .container a containing block that demotes descendant + position:fixed to relative-to-container, breaking full-screen modals on + real devices once the page scrolls past one viewport. The prior + `to: transform: none` did NOT hold on real devices, so drop transform + from the keyframes entirely. Pages still get a fade-in. */ + from { opacity: 0; } + to { opacity: 1; } } diff --git a/components/calendar-heatmap/calendar-heatmap.js b/components/calendar-heatmap/calendar-heatmap.js index 9d1540a..085c237 100644 --- a/components/calendar-heatmap/calendar-heatmap.js +++ b/components/calendar-heatmap/calendar-heatmap.js @@ -79,13 +79,16 @@ Component({ onDayTap(e) { const day = e.currentTarget.dataset.day - if (!day) return - const cell = this.data.weeks.flat().find(c => c && c.day === day) + if (!day && day !== 0) return + // dataset values can arrive as strings on real devices, which breaks + // the strict === against c.day (number). Normalize so the lookup + // works on both simulator and device. + const cell = this.data.weeks.flat().find(c => c && c.day === Number(day)) if (!cell || cell.duration <= 0) return this.triggerEvent('daytap', { year: this.properties.year, month: this.properties.month, - day, + day: cell.day, duration: cell.duration }) } diff --git a/pages/records/records.wxml b/pages/records/records.wxml index 1f18a5e..cd0d61e 100644 --- a/pages/records/records.wxml +++ b/pages/records/records.wxml @@ -113,11 +113,12 @@ - - + + + @@ -146,4 +147,3 @@ -