Skip to content

Commit fc00f7f

Browse files
refactor(ui): Simplify response and reasoning rendering in AllResultsModal
- Consolidate response and reasoning rendering into single line for improved readability. - Maintain existing functionality while enhancing code clarity.
1 parent 36c295a commit fc00f7f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/components/AllResultsModal.astro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ import Modal from './ui/Modal.astro';
210210
<!-- Response -->
211211
<div>
212212
<h5 class="text-xs font-semibold text-base-content/70 mb-1">Response</h5>
213-
<div class="bg-base-200 p-3 rounded-lg font-mono text-sm max-h-60 overflow-y-auto whitespace-pre-wrap custom-scrollbar">
214-
${result.response_text ? escapeAndFormatText(result.response_text) : '[No response]'}
215-
</div>
213+
<div class="bg-base-200 p-3 rounded-lg font-mono text-sm max-h-60 overflow-y-auto whitespace-pre-wrap custom-scrollbar">${result.response_text ? escapeAndFormatText(result.response_text) : '[No response]'}</div>
216214
</div>
217215

218216
<!-- Reasoning (if available) -->
@@ -221,9 +219,7 @@ import Modal from './ui/Modal.astro';
221219
? `
222220
<div>
223221
<h5 class="text-xs font-semibold text-base-content/70 mb-1">Reasoning</h5>
224-
<div class="bg-base-200 p-3 rounded-lg text-sm max-h-40 overflow-y-auto custom-scrollbar">
225-
${escapeAndFormatText(result.accuracy_reasoning)}
226-
</div>
222+
<div class="bg-base-200 p-3 rounded-lg text-sm max-h-40 overflow-y-auto custom-scrollbar">${escapeAndFormatText(result.accuracy_reasoning)}</div>
227223
</div>
228224
`
229225
: ''

0 commit comments

Comments
 (0)