From ae09f77bf6e1a21282759a4dba4ac63434e53245 Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:25:06 +0100 Subject: [PATCH 1/6] Update subreddit.html --- templates/subreddit.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/subreddit.html b/templates/subreddit.html index 6fd7325..3ac6161 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -66,8 +66,8 @@ xmlns="http://www.w3.org/2000/svg"> - Post image - + Post image + {% else if post.post_type != "self" %} @@ -79,7 +79,7 @@ {% else %} - + {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} From ba9b5afd4efe5a956fa4b57b0d26b315a37c0d36 Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:25:57 +0100 Subject: [PATCH 2/6] Update post.html --- templates/post.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post.html b/templates/post.html index 619005e..fe1441c 100644 --- a/templates/post.html +++ b/templates/post.html @@ -72,8 +72,8 @@ xmlns="http://www.w3.org/2000/svg"> - Post image - + Post image + {% else if post.post_type == "video" || post.post_type == "gif" %} From 7d8faefad0caad8e5abedaa8f96aa4b0a8f5234b Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:26:35 +0100 Subject: [PATCH 3/6] Update search.html --- templates/search.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/search.html b/templates/search.html index 1d6bb1e..44f3b35 100644 --- a/templates/search.html +++ b/templates/search.html @@ -71,8 +71,8 @@ xmlns="http://www.w3.org/2000/svg"> - Post image - + Post image + {% else if post.post_type != "self" %} @@ -84,7 +84,7 @@ {% else %} - + {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} From 58f4fc4e774575158fcd9e18bf627a7f5966e280 Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:27:08 +0100 Subject: [PATCH 4/6] Update user.html --- templates/user.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/user.html b/templates/user.html index a556a98..faf14ff 100644 --- a/templates/user.html +++ b/templates/user.html @@ -56,8 +56,8 @@ xmlns="http://www.w3.org/2000/svg"> - Post image - + Post image + {% else if post.post_type != "self" %} @@ -69,7 +69,7 @@ {% else %} - + {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} From 7f320b31439d1765a58590faa93244cd7936acd7 Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:27:56 +0100 Subject: [PATCH 5/6] Update style.css --- static/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/style.css b/static/style.css index 84662f2..108d59b 100644 --- a/static/style.css +++ b/static/style.css @@ -633,6 +633,11 @@ a.search_subreddit:hover { width: auto; } +img.post_media { + max-width: 100%; + width: auto; +} + #post_url { color: var(--accent); margin: 5px 20px; From 0742a3330473f7bb183b08b11f238c624c940021 Mon Sep 17 00:00:00 2001 From: robrobinbin <8597693+robrobinbin@users.noreply.github.com> Date: Mon, 1 Feb 2021 20:32:57 +0100 Subject: [PATCH 6/6] Update base.html --- templates/base.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 6400ebd..343c759 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,11 +38,17 @@