]> Untitled Git - lemmy.git/commitdiff
Fix image expand width on mobile.
authorDessalines <tyhou13@gmx.com>
Mon, 2 Mar 2020 15:48:06 +0000 (10:48 -0500)
committerDessalines <tyhou13@gmx.com>
Mon, 2 Mar 2020 15:48:06 +0000 (10:48 -0500)
ui/src/components/post-listing.tsx

index fe4e65193ef8534e9ac56e2a3b55a74864e6bba4..732664e88c2f1a0ced7d12ae5671d5d726bd6d06 100644 (file)
@@ -285,7 +285,9 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
             <source src={this.state.url} type="video/mp4" />
           </video>
         )}
-        <div class="col-8 col-sm-9">
+        <div
+          class={`${this.state.imageExpanded ? 'col-12' : 'col-8 col-sm-9'}`}
+        >
           <div class="row">
             <div className="col-12">
               <div className="post-title">