From 237b95c460f1e8337c25073edb61f9ac87d75954 Mon Sep 17 00:00:00 2001 From: Corwin Date: Mon, 22 Apr 2024 12:52:33 +0100 Subject: [PATCH] expand backtrace if large --- website/agb/src/app/crash/debug.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/website/agb/src/app/crash/debug.tsx b/website/agb/src/app/crash/debug.tsx index 3765f14f..a573cef2 100644 --- a/website/agb/src/app/crash/debug.tsx +++ b/website/agb/src/app/crash/debug.tsx @@ -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 {