From f818eeb2608e17b3deeb4710b3100f54f14df084 Mon Sep 17 00:00:00 2001 From: Martin Kim Date: Fri, 20 Sep 2024 21:25:24 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=9D=91=EB=8B=B5=20=EB=82=B4=EC=97=AD?= =?UTF-8?q?=EC=9D=84=20=EB=A7=88=ED=81=AC=20=EB=8B=A4=EC=9A=B4=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=A0=95=EC=83=81=EC=A0=81=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=BC=20=EC=88=98=20=EC=9E=88=EA=B2=8C=20=EC=B2=98=EB=A6=AC?= =?UTF-8?q?,=20=ED=99=94=EB=A9=B4=20=ED=81=AC=EA=B8=B0=EC=97=90=20?= =?UTF-8?q?=EB=94=B0=EB=A5=B8=20=EC=98=81=EC=97=AD=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/history/view.html | 43 ++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/history/view.html b/src/main/resources/templates/history/view.html index bb5deeb..d6bcf62 100644 --- a/src/main/resources/templates/history/view.html +++ b/src/main/resources/templates/history/view.html @@ -28,6 +28,11 @@ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); max-width: 600px; width: 100%; + max-height: 90vh; /* 화면 크기에 따른 최대 높이 제한 */ + overflow-y: auto; /* 내용이 많으면 스크롤 */ + display: flex; + flex-direction: column; + justify-content: space-between; } .time { @@ -45,19 +50,53 @@ padding-bottom: 10px; } - p { + .answer { font-size: 16px; color: #555; line-height: 1.6; white-space: pre-line; + overflow-wrap: break-word; + } + + .answer ul { + list-style-type: disc; + padding-left: 20px; + } + + .answer ol { + list-style-type: decimal; + padding-left: 20px; + } + + .answer code { + background-color: #f5f5f5; + padding: 2px 4px; + border-radius: 4px; + } + + .answer pre { + background-color: #f5f5f5; + padding: 10px; + border-radius: 4px; + overflow-x: auto; } + +

-

+
+ +