From d018db505471226bba8a2e031782676b646396c0 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Thu, 16 Apr 2020 15:11:21 +0530 Subject: Set post_image, comment_image height, width to 50% - img-fluid took more space of a card than required. Made it hard to read the remaining description in a forum. --- yaksh/static/yaksh/css/custom.css | 5 +++++ yaksh/templates/yaksh/course_forum.html | 3 +-- yaksh/templates/yaksh/post_comments.html | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) (limited to 'yaksh') diff --git a/yaksh/static/yaksh/css/custom.css b/yaksh/static/yaksh/css/custom.css index 299f5d3..6687c4b 100644 --- a/yaksh/static/yaksh/css/custom.css +++ b/yaksh/static/yaksh/css/custom.css @@ -108,4 +108,9 @@ body, .dropdown-menu { padding-right: 0.3em; padding-top: 0.2em; padding-bottom: 0.2em; +} + +.post_image, .comment_image { + width: 50%; + height: 50%; } \ No newline at end of file diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html index ef6dbf8..63e577b 100644 --- a/yaksh/templates/yaksh/course_forum.html +++ b/yaksh/templates/yaksh/course_forum.html @@ -42,12 +42,11 @@
{% if posts %} -

Posts:

{% for post in posts %}
{{post.title}} -
+

{{post.description|truncatewords:30}}

{{post.get_comments_count}}{% if post.get_comments_count > 1 %} replies{% else %} reply{% endif %}