fix: improve scrolling in Show Request Logs (#853)

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR introduces following:
- Make only markdown content scrollable while keeping OK button visible
This commit is contained in:
kwaroran
2025-05-24 20:16:32 +09:00
committed by GitHub

View File

@@ -96,11 +96,13 @@
<h2 class="text-green-700 mt-0 mb-2 w-40 max-w-full">Input</h2>
{/if}
{#if $alertStore.type === 'markdown'}
<span class="text-gray-300 chattext prose chattext2" class:prose-invert={$ColorSchemeTypeStore}>
{#await ParseMarkdown($alertStore.msg) then msg}
{@html msg}
{/await}
</span>
<div class="overflow-y-auto">
<span class="text-gray-300 chattext prose chattext2" class:prose-invert={$ColorSchemeTypeStore}>
{#await ParseMarkdown($alertStore.msg) then msg}
{@html msg}
{/await}
</span>
</div>
{:else if $alertStore.type === 'tos'}
<!-- svelte-ignore a11y_missing_attribute -->
<!-- svelte-ignore a11y_click_events_have_key_events -->