mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 11:51:08 +00:00
Fix expanded image height. Fixes #455
This commit is contained in:
parent
b7a332ff3c
commit
c84a2d6b1e
3 changed files with 7 additions and 2 deletions
5
ui/assets/css/main.css
vendored
5
ui/assets/css/main.css
vendored
|
@ -37,6 +37,7 @@
|
|||
}
|
||||
|
||||
.md-div img {
|
||||
max-height: 90vh;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
@ -170,3 +171,7 @@ hr {
|
|||
-o-filter: blur(10px);
|
||||
-ms-filter: blur(10px);
|
||||
}
|
||||
|
||||
.img-expanded {
|
||||
max-height: 90vh;
|
||||
}
|
||||
|
|
2
ui/src/components/post-listing.tsx
vendored
2
ui/src/components/post-listing.tsx
vendored
|
@ -237,7 +237,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
class="pointer"
|
||||
onClick={linkEvent(this, this.handleImageExpandClick)}
|
||||
>
|
||||
<img class="img-fluid" src={post.url} />
|
||||
<img class="img-fluid img-expanded" src={post.url} />
|
||||
</span>
|
||||
</div>
|
||||
</span>
|
||||
|
|
2
ui/src/utils.ts
vendored
2
ui/src/utils.ts
vendored
|
@ -384,7 +384,7 @@ export function showAvatars(): boolean {
|
|||
export function imageThumbnailer(url: string): string {
|
||||
let split = url.split('pictshare');
|
||||
if (split.length > 1) {
|
||||
let out = `${split[0]}pictshare/140x140${split[1]}`;
|
||||
let out = `${split[0]}pictshare/192x192${split[1]}`;
|
||||
return out;
|
||||
} else {
|
||||
return url;
|
||||
|
|
Loading…
Reference in a new issue