Skip to content

Commit 7139fe9

Browse files
committed
♻️ [fix] : 히스토리 챗 줄바꿈 및 최대길이 표기
1 parent fff168f commit 7139fe9

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/task-detail/TaskDetailHistory.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:history="historyData"
66
:taskId="taskId"
77
:requestor-name="requestorName" />
8+
89
<div class="flex flex-col w-full items-center mt-8 gap-[22px]">
910
<div
1011
class="flex w-full flex-col items-center gap-[22px]"

src/components/task-detail/TaskDetailHistoryChat.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div :class="['flex gap-2', isRequestor ? 'flex-row' : 'flex-row-reverse']">
1919
<p
2020
:class="[
21-
'flex max-w-[400px] flex-wrap px-4 py-3 text-base rounded-lg font-normal',
21+
'flex max-w-[400px] flex-wrap break-all px-4 py-3 text-base rounded-lg font-normal',
2222
isRequestor ? 'bg-background-2' : 'bg-primary2'
2323
]">
2424
{{ history.details.commentDetails?.comment || history.details.taskDetails?.value }}

src/components/task-detail/TaskDetailHistoryInput.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
@click="sendMessage" />
3535
</button>
3636
</div>
37+
<p class="text-xs mt-1.5">({{ inputLength }}/{{ 254 }})</p>
3738
<ModalView
3839
:is-open="isModalVisible"
3940
type="failType"
@@ -74,6 +75,7 @@ const isPossible = computed(
7475
)
7576
7677
const isSendable = computed(() => isPossible.value && messageText.value.trim() !== '')
78+
const inputLength = computed(() => messageText.value.length)
7779
7880
const placeHolderText = computed(() => {
7981
if (history.length === 0) {

0 commit comments

Comments
 (0)