fix(viewer): remove tap-more like hint from photo action bar (user request)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-23 09:31:26 +08:00
parent 452cdf496c
commit aa78855657
4 changed files with 4 additions and 15 deletions
@@ -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', () => {