From 2c7976997005d1c3c70dde097c3ab67100dd3773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fukan=20=C3=9Crker?= Date: Thu, 28 Dec 2023 20:39:09 +0300 Subject: [PATCH] comment content and post content overflow fixed --- static/css/general.css | 1 + static/css/post.css | 5 ++++- templates/post.html | 28 +++++++++++++++------------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/static/css/general.css b/static/css/general.css index 90d71b62..8517e633 100644 --- a/static/css/general.css +++ b/static/css/general.css @@ -10,6 +10,7 @@ font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; color: var(--themePrimary); + overflow-wrap: break-word !important; } html { diff --git a/static/css/post.css b/static/css/post.css index 9fa1d72f..1b4a4117 100644 --- a/static/css/post.css +++ b/static/css/post.css @@ -34,7 +34,7 @@ .comment { display: block; - width: 25rem; + width: 27.5rem; height: 8rem; background-color: transparent; border: none; @@ -118,4 +118,7 @@ small { .navbar * { width: 100%; } + .comment { + max-width: 90%; + } } diff --git a/templates/post.html b/templates/post.html index aa60df7a..495d9cb4 100644 --- a/templates/post.html +++ b/templates/post.html @@ -45,19 +45,21 @@
{{date}}
{% endif %} {% for comment in comments %}
- -
- {{comment[3]}} : -
-

{{comment[2]}}

- {% if session["userName"] == comment[3] %} -
- - - -
+
+ +
+ {{comment[3]}} : +
+

{{comment[2]}}

+ {% if session["userName"] == comment[3] %} +
+ + + +
+
{% endif %} {% endfor %}