feat(viewer): hide link text under QR in share sheet (user request) — QR + copy button remain

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-24 16:51:36 +08:00
parent 643f837bca
commit d279cefd71
3 changed files with 3 additions and 15 deletions
@@ -187,9 +187,7 @@ describe('album header info area (UI-02 V02)', () => {
await Promise.resolve();
// 弹层出现:链接文本 + 复制按钮(页面级「已复制」提示已退役)。
expect(sheetEl()).not.toBeNull();
expect(sheetEl()!.querySelector('[data-test="share-sheet-url"]')!.textContent).toBe(
'http://localhost:3000/a/tokfixture0000000000aaaa?lang=zh-CN',
);
// 链接文本已隐藏(2026-09-24):二维码 + 复制按钮仍在。
expect(document.querySelector('.share-status')).toBeNull();
const copyBtn = sheetEl()!.querySelector<HTMLButtonElement>('[data-test="share-sheet-copy"]')!;
+1 -3
View File
@@ -602,9 +602,7 @@ describe('photo lightbox interactions (UI-02 V05)', () => {
await flushPromises();
// 弹层出现并携带照片深链(页面级提示已退役)。
expect(lbSheet()).not.toBeNull();
expect(
lbSheet()!.querySelector('[data-test="share-sheet-url"]')!.textContent,
).toBe('/a/tok-lb/p/p1?lang=zh-CN');
// 链接文本已隐藏(2026-09-24)。
expect(wrapper.find('.share-status').exists()).toBe(false);
const nativeBtn = lbSheet()!.querySelector<HTMLButtonElement>('[data-test="share-sheet-native"]')!;
@@ -142,7 +142,7 @@ onBeforeUnmount(() => {
<canvas ref="qrCanvas" width="188" height="188" aria-hidden="true"></canvas>
</div>
<p class="share-sheet-url" data-test="share-sheet-url">{{ url }}</p>
<!-- 链接文本已按用户要求隐藏(2026-09-24)——二维码 + 复制按钮保留。 -->
<div class="share-sheet-actions">
<button
@@ -266,14 +266,6 @@ onBeforeUnmount(() => {
width: 188px;
height: 188px;
}
.share-sheet-url {
margin: 0 0 12px;
font-size: 0.75rem;
color: #647084;
word-break: break-all;
text-align: center;
user-select: text;
}
.share-sheet-actions {
display: flex;
gap: 10px;