Revert nsfw image sizing, give attachments max-height to reduce scrolling
This commit is contained in:
parent
39a6867557
commit
05dfd96571
@ -26,7 +26,7 @@ const Attachment = {
|
|||||||
autoHeight () {
|
autoHeight () {
|
||||||
if (this.type === 'image' && this.nsfw) {
|
if (this.type === 'image' && this.nsfw) {
|
||||||
return {
|
return {
|
||||||
'min-height': '311px'
|
'min-height': '109px'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,8 +116,10 @@
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
object-fit: contain;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%; /* If this isn't here, chrome will stretch the images */
|
//height: 100%; /* If this isn't here, chrome will stretch the images */
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user