Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use max-height for images
Makes it possible to resize both previews and GIFs in a responsive
manner, keeping the ratio and everything visible.

Added border radius to make it look even nicer.

Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 committed Oct 28, 2020
commit 7c26560c784e79f1efe35e1ff27062bcc2e13449
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,15 @@ export default {

.preview {
display: inline-block;
border-radius: var(--border-radius);
max-width: 100%;
height: 384px;
max-height: 384px;
}
.preview-64 {
display: inline-block;
border-radius: var(--border-radius);
max-width: 100%;
height: 64px;
max-height: 64px;
}

strong {
Expand Down