style(qrcode): 优化预览态布局适配popup窗口

- 调整文本预览区域高度,单行显示截断文本
- 缩小二维码图片尺寸(56x56 -> 48x48)
- 减少内边距和间距,更紧凑的布局
- 确保完整显示在popup窗口中无需滚动
This commit is contained in:
雨霖铃
2026-05-30 20:46:47 +08:00
parent 9458d62a99
commit a0345b384d
3 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -133,8 +133,8 @@ describe('QrCodePage', () => {
// 点击生成按钮
fireEvent.click(screen.getByText('生成二维码'));
// 验证显示截断的文本(100字符 + "..."
const truncatedText = longText.slice(0, 100) + '...';
// 验证显示截断的文本(80字符 + "..."
const truncatedText = longText.slice(0, 80) + '...';
expect(screen.getByText(truncatedText)).toBeInTheDocument();
});