mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(core): remove legacy plebbit terminology
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
}
|
||||
|
||||
.floatingEmbed,
|
||||
.subplebbitAvatar {
|
||||
.communityAvatar {
|
||||
max-width: 250px;
|
||||
max-height: 250px;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.subplebbitAvatar {
|
||||
.communityAvatar {
|
||||
margin: 3px 20px 5px 20px;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.subplebbitAvatar {
|
||||
.communityAvatar {
|
||||
max-width: 125px;
|
||||
max-height: 125px;
|
||||
margin: 3px 10px 5px 5px;
|
||||
|
||||
@@ -438,7 +438,7 @@ const CommentMedia = ({
|
||||
const maxThumbnailSize = isMobile || isReply ? 125 : 250;
|
||||
|
||||
if (linkWidth && linkHeight) {
|
||||
// use the dimensions from the plebbit-js api
|
||||
// use the dimensions from the pkc-js API
|
||||
let scale = Math.min(1, maxThumbnailSize / Math.max(linkWidth, linkHeight));
|
||||
displayWidth = `${linkWidth * scale}px`;
|
||||
displayHeight = `${linkHeight * scale}px`;
|
||||
|
||||
Reference in New Issue
Block a user