Make content log overflow scroll Y and X
This commit is contained in:
parent
53cb96c205
commit
2f417ef5db
@ -18,8 +18,9 @@ const Logs = () => {
|
|||||||
}, [logs])
|
}, [logs])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4">
|
<div className="overflow-hidden">
|
||||||
{logs.length > 1 ? (
|
{logs.length > 1 ? (
|
||||||
|
<div className="h-full overflow-auto p-4">
|
||||||
<code className="text-xs">
|
<code className="text-xs">
|
||||||
{logs.map((log, i) => {
|
{logs.map((log, i) => {
|
||||||
return (
|
return (
|
||||||
@ -29,6 +30,7 @@ const Logs = () => {
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</code>
|
</code>
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="mt-24 flex flex-col items-center justify-center">
|
<div className="mt-24 flex flex-col items-center justify-center">
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user