- 日视图滚动容器末尾新增留白(64rpx + 安全区),避免末条时间刻度与末个预约卡片贴边、滚到底仍缺一截 - 视口高度计算同步预留该留白,短时间轴不再因高度刚好等于内容高度而裁掉末条标签 - 时间刻度列加宽到 104rpx,刻度与泳道内容间距增至 20rpx,改善左侧呼吸感并避免刻度文字被截断
This commit is contained in:
@@ -21,6 +21,9 @@ function resolveCalendarErrorMessage(error) {
|
||||
|
||||
const LANE_TINTS = ['#EAF3FA', '#FBF1EB', '#EEF5EF']
|
||||
|
||||
// 日视图时间轴末尾留白(rpx):避免末条时间刻度与末个预约卡片贴住滚动容器底边
|
||||
const TIMELINE_BOTTOM_SPACE = 64
|
||||
|
||||
const DESIGN_ARTIST_COLORS = {
|
||||
张小雨: '#43789E',
|
||||
林小满: '#96684B',
|
||||
@@ -747,7 +750,7 @@ Page({
|
||||
hours,
|
||||
hasTimedAppointments: timedAppointments.length > 0,
|
||||
timelineHeight: timelineHeight + laneHeaderHeight,
|
||||
timelineViewportHeight: Math.min(820, timelineHeight + laneHeaderHeight),
|
||||
timelineViewportHeight: Math.min(820, timelineHeight + laneHeaderHeight + TIMELINE_BOTTOM_SPACE),
|
||||
laneHeaderHeight,
|
||||
laneItemWidth: 248,
|
||||
laneWidth: Math.max(720, lanes.reduce((width, lane) => width + (lane.width || 248), 0)),
|
||||
|
||||
Reference in New Issue
Block a user