feat(app): all album date displays date-only — formatAlbumDateTime drops HH:mm
相册列表卡/详情信息/分享页 meta/照片查看器日期一律纯日期(y/M/d)。 全量测试断言同步;397/397 全绿。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -73,10 +73,6 @@ watch(
|
||||
watch([titleEl, descEl, titleExpanded, descExpanded], () => measureOverflow(), { flush: 'post' });
|
||||
|
||||
// —— 元信息行 ——
|
||||
const viewsText = computed(() => {
|
||||
if (props.viewCount === null) return t('viewer.viewsUnknown');
|
||||
return t('viewer.views', { count: new Intl.NumberFormat(locale.value).format(props.viewCount) });
|
||||
});
|
||||
|
||||
/** 紧凑日期(无时分):首页元信息行用;窄屏也不爆宽。 */
|
||||
const dateText = computed(() => formatDate({ year: 'numeric', month: 'long', day: 'numeric' }));
|
||||
@@ -205,10 +201,7 @@ watch(
|
||||
|
||||
<!-- 参考稿:元信息行用简洁 Unicode 图标(◉ 浏览 / ▦ 日期 / ♧ 地点) -->
|
||||
<div class="meta">
|
||||
<span class="meta-item view-count">
|
||||
<span class="meta-icon" aria-hidden="true">◉</span>
|
||||
<span>{{ viewsText }}</span>
|
||||
</span>
|
||||
<!-- 浏览次数已按用户要求隐藏(2026-09-24)——后端计数与上报不受影响。 -->
|
||||
<span v-if="dateText !== ''" class="meta-item" :title="dateFullText">
|
||||
<span class="meta-icon" aria-hidden="true">▦</span>
|
||||
<span>{{ dateText }}</span>
|
||||
@@ -392,9 +385,6 @@ watch(
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.view-count {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* —— 排序 tab(参考稿:分隔线由上方元信息行承担;选中项 2px 底线) —— */
|
||||
.sort-tabs {
|
||||
|
||||
Reference in New Issue
Block a user