expand backtrace if large

This commit is contained in:
Corwin 2024-04-22 12:52:33 +01:00
parent 4243592f63
commit 237b95c460
No known key found for this signature in database

View file

@ -4,11 +4,24 @@ import { ReactNode, useMemo, useState } from "react";
const BacktraceListWrapper = styled.div` const BacktraceListWrapper = styled.div`
font-size: 1rem; font-size: 1rem;
width: 100vw;
margin-left: calc(-50vw);
left: 50%;
position: relative;
`; `;
const BacktraceList = styled.ol` const BacktraceList = styled.ol`
overflow-x: scroll; overflow-x: scroll;
white-space: nowrap; white-space: nowrap;
margin-left: auto;
margin-right: auto;
min-width: 60%;
max-width: 99%;
width: fit-content;
@media (max-width: 40rem) {
min-width: 90%;
}
`; `;
interface DebugProps { interface DebugProps {