mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
expand backtrace if large (#651)
This commit is contained in:
commit
1f1ba909c6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue