fix: 钉钉桌面端通知二维码被裁剪
桌面端钉钉会把 Markdown 图片裁成横向区域,正方形二维码上下被裁掉。 二维码居中放到 3:2 白底画布上;网页中的二维码图片改用 object-fit 避免拉伸。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8f2f23682f
commit
6890f13aa9
@@ -513,7 +513,7 @@ const errorCategoryHint = (cat) => {
|
||||
.download-link { color: #1890ff; text-decoration: none; }
|
||||
.download-link:hover { text-decoration: underline; }
|
||||
.qr-section { text-align: center; padding: 16px; background: #fafafa; border-radius: 8px; }
|
||||
.qr-image { width: 180px; height: 180px; border: 1px solid #f0f0f0; border-radius: 8px; }
|
||||
.qr-image { width: 180px; height: 180px; object-fit: contain; border: 1px solid #f0f0f0; border-radius: 8px; }
|
||||
.qr-hint { margin-top: 8px; font-size: 13px; color: #999; }
|
||||
.error-msg { color: #ff4d4f; font-size: 13px; word-break: break-all; }
|
||||
|
||||
|
||||
@@ -570,7 +570,7 @@ const errorCategoryLabel = (cat) => {
|
||||
.download-link:disabled { color: #999; cursor: default; }
|
||||
.download-link:disabled:hover { text-decoration: none; }
|
||||
.text-muted { color: #999; font-size: 13px; }
|
||||
.qr-thumb { width: 40px; height: 40px; cursor: pointer; border-radius: 4px; border: 1px solid #e8e8e8; }
|
||||
.qr-thumb { width: 40px; height: 40px; object-fit: cover; cursor: pointer; border-radius: 4px; border: 1px solid #e8e8e8; }
|
||||
.qr-thumb:hover { border-color: #1890ff; }
|
||||
.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
|
||||
.btn-danger:hover { background: #ff4d4f; color: white; }
|
||||
@@ -580,7 +580,7 @@ const errorCategoryLabel = (cat) => {
|
||||
.qr-preview-modal .modal-header { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 16px; }
|
||||
.qr-preview-modal .modal-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }
|
||||
.qr-preview-modal .modal-close:hover { color: #333; }
|
||||
.qr-preview-img { width: 260px; height: 260px; border: 1px solid #f0f0f0; border-radius: 8px; margin: 16px 0; }
|
||||
.qr-preview-img { width: 260px; height: 260px; object-fit: contain; border: 1px solid #f0f0f0; border-radius: 8px; margin: 16px 0; }
|
||||
.qr-preview-info { text-align: left; padding: 12px 16px; background: #fafafa; border-radius: 8px; }
|
||||
.qr-preview-info p { margin: 6px 0; font-size: 13px; color: #555; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user