From c34031aeb9e7716ade290c0817716aab2f8ebe03 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 11 Jan 2023 14:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fd/AppAnswer/answerDetail.vue | 3 ++- src/project/fd/AppAnswer/answerList.vue | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/project/fd/AppAnswer/answerDetail.vue b/src/project/fd/AppAnswer/answerDetail.vue index f7fb67a7..a5b9f253 100644 --- a/src/project/fd/AppAnswer/answerDetail.vue +++ b/src/project/fd/AppAnswer/answerDetail.vue @@ -80,13 +80,14 @@ export default { justify-content: space-between; .left { display: flex; + width: calc(100% - 280px); img { width: 80px; height: 80px; margin-right: 16px; } .head_avtar { - width: calc(100% - 96px); + max-width: calc(100% - 96px); } } .col-999 { diff --git a/src/project/fd/AppAnswer/answerList.vue b/src/project/fd/AppAnswer/answerList.vue index 41c07321..fa53b638 100644 --- a/src/project/fd/AppAnswer/answerList.vue +++ b/src/project/fd/AppAnswer/answerList.vue @@ -127,13 +127,22 @@ export default { border-radius: 16px 16px 0 0; .left { display: flex; + width: calc(100% - 280px); img { width: 80px; height: 80px; margin-right: 16px; } .card_head_avtar { - width: calc(100% - 96px); + max-width: calc(100% - 96px); + h4, + div { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + } } }