]> Untitled Git - lemmy.git/commitdiff
Fix expanded image height. Fixes #455
authorDessalines <tyhou13@gmx.com>
Fri, 7 Feb 2020 03:24:23 +0000 (22:24 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 7 Feb 2020 03:24:23 +0000 (22:24 -0500)
ui/assets/css/main.css
ui/src/components/post-listing.tsx
ui/src/utils.ts

index 2703d550c57ef96533aed59b81a62cf21d08f352..b1ad884a575588b9fd925a12d390478ae2c538dc 100644 (file)
@@ -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;
+}
index 9b3141c42b6c5fe69c4bf7a6315681a3c405c748..f11d9e1441439f3c2bcb11e7e796ff7e1ca4e5cc 100644 (file)
@@ -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>
index c53ee76a1a5d1d19b5d53927a3effad07ece42b9..9ad0920f4f66b1313149c8e712ef69ba3001c026 100644 (file)
@@ -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;