diff --git a/plugins/Openai/Views/admin/openai.blade.php b/plugins/Openai/Views/admin/openai.blade.php index 16a0f880..5c1db0c6 100644 --- a/plugins/Openai/Views/admin/openai.blade.php +++ b/plugins/Openai/Views/admin/openai.blade.php @@ -134,12 +134,9 @@ let answer = marked.parse(data.response.choices[0].text); html += '
', - html += - '
{{ __('Openai::common.qa_q') }}:
' + - question + '
', - html += - '
{{ __('Openai::common.qa_a') }}:
' + - answer + '
' + html += '
' + data.created_at + '
', + html += '
{{ __('Openai::common.qa_q') }}:
' + question + '
', + html += '
{{ __('Openai::common.qa_a') }}:
' + answer + '
' html += '
' $('#ai-input').val(''); @@ -183,12 +180,9 @@ let html = ''; data.data.forEach(function(item, index) { html += '
', - html += - '
{{ __('Openai::common.qa_q') }}:
' + - item.question + '
', - html += - '
{{ __('Openai::common.qa_a') }}:
' + - marked.parse(item.answer) + '
' + html += '
' + item.created_at + '
', + html += '
{{ __('Openai::common.qa_q') }}:
' + item.question + '
', + html += '
{{ __('Openai::common.qa_a') }}:
' + marked.parse(item.answer) + '
' html += '
' }) @@ -232,10 +226,10 @@ } .answer-list { - padding-bottom: 20px; - margin-bottom: 20px; + /* padding-bottom: 20px; */ + /* margin-bottom: 20px; */ white-space: pre-wrap; - border-bottom: 1px solid #eee; + /* border-bottom: 1px solid #eee; */ } .answer-list p { @@ -243,9 +237,34 @@ } .answer-list:last-child { - border-bottom: none; - margin-bottom: 0; - padding-bottom: 0; + /* border-bottom: none; */ + /* margin-bottom: 0; */ + /* padding-bottom: 0; */ + } + + .created-at { + text-align: center; + color: #999; + font-size: 12px; + margin: 30px 0; + position: relative; + } + + .created-at span { + background-color: #fff; + padding: 0 10px; + position: relative; + } + + .created-at:before { + content: ''; + display: inline-block; + width: 100%; + height: 1px; + background-color: #eee; + position: absolute; + top: 50%; + left: 0; } pre { @@ -268,5 +287,11 @@ background-color: #283646 !important; color: #FFF; } + + ol, ul, dl { + margin-bottom: 0; + padding-left: 14px; + line-height: 1; + } @endsection