expand backtrace if large (#651)

This commit is contained in:
Corwin 2024-04-22 13:00:41 +01:00 committed by GitHub
commit 1f1ba909c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,11 +4,24 @@ import { ReactNode, useMemo, useState } from "react";
const BacktraceListWrapper = styled.div`
font-size: 1rem;
width: 100vw;
margin-left: calc(-50vw);
left: 50%;
position: relative;
`;
const BacktraceList = styled.ol`
overflow-x: scroll;
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 {