diff --git a/apps/viewer/src/__tests__/photo-action-bar.spec.ts b/apps/viewer/src/__tests__/photo-action-bar.spec.ts index 02c8360..34bacfe 100644 --- a/apps/viewer/src/__tests__/photo-action-bar.spec.ts +++ b/apps/viewer/src/__tests__/photo-action-bar.spec.ts @@ -39,16 +39,16 @@ describe('photo action bar (UI-02 V04)', () => { vi.restoreAllMocks(); }); - it('renders like/share/download as evenly distributed slots with formatted count and hint', () => { + it('renders like/share/download as evenly distributed slots with formatted count (no tap-more hint)', () => { const wrapper = mountBar({ likeCount: 1286, canDownload: true }); // 三个 action-slot flex 均分(下载隐藏时由剩余 slot 自然重排,见下例)。 expect(wrapper.findAll('.action-slot')).toHaveLength(3); const labels = wrapper.findAll('.action-label').map((label) => label.text()); expect(labels).toEqual(['点赞', '分享', '下载']); - // 计数 Intl 分组 + tabular-nums 容器;Like 下方次级提示(§5.1)。 + // 计数 Intl 分组 + tabular-nums 容器;「连续点击」提示已按用户要求移除。 expect(wrapper.find('.like-count').text()).toBe('1,286'); - expect(wrapper.find('.like-hint').text()).toBe('连续点击,为照片点赞'); + expect(wrapper.find('.like-hint').exists()).toBe(false); }); it('removes the download action entirely when downloads are disabled', () => { diff --git a/apps/viewer/src/components/viewer/PhotoActionBar.vue b/apps/viewer/src/components/viewer/PhotoActionBar.vue index d9c042f..2ff6bde 100644 --- a/apps/viewer/src/components/viewer/PhotoActionBar.vue +++ b/apps/viewer/src/components/viewer/PhotoActionBar.vue @@ -89,8 +89,6 @@ onBeforeUnmount(cancelPress); {{ likeCountText }} {{ t('viewer.like') }} - -
{{ t('viewer.tapMore') }}