#221: image paste view fixes
- image pastes scale to fit the viewer box (max-width/max-height, object-fit) - no text/code box rendered below the image for image pastes - link pill positioning cleaned up on the image view - /raw for attachment pastes redirects to the file itself - view details size now uses the attachment blob size, not empty text len
This commit is contained in:
@@ -818,7 +818,15 @@ button[type="submit"]:focus-visible,
|
||||
}
|
||||
.attachment-chip:hover { border-color: var(--accent); }
|
||||
.attachment-chip .attachment-size { color: var(--muted-fg); font-size: 19px; }
|
||||
.attachment-preview img { max-width: 480px; max-height: 360px; border-radius: var(--radius); border: 1px solid var(--border); }
|
||||
/* #221: image pastes scale to fit the viewer box (no text box below), and
|
||||
the link pill sits above the image without drifting out of place. */
|
||||
.attachment-bar.is-image { align-items: flex-start; }
|
||||
.attachment-bar.is-image .attachment-chip { max-width: 100%; }
|
||||
.attachment-preview { max-width: 100%; }
|
||||
.attachment-preview img {
|
||||
display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto;
|
||||
object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* #139: CSP-safe replacements for inline style attributes (style-src 'self') */
|
||||
.hidden { display: none; }
|
||||
|
||||
Reference in New Issue
Block a user