fix dark mode styling and add word wrap for resource viewer.

This commit is contained in:
evalstate
2024-11-27 17:56:22 +00:00
parent c770d217e7
commit 68a6130b17

View File

@@ -83,7 +83,7 @@ const ToolsTab = ({
/>
)}
{item.type === "resource" && (
<pre className="bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64">
<pre className="bg-gray-50 dark:bg-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words p-4 rounded text-sm overflow-auto max-h-64">
{JSON.stringify(item.resource, null, 2)}
</pre>
)}