diff --git a/frontend/app/components/Session_/Fetch/FetchDetails.js b/frontend/app/components/Session_/Fetch/FetchDetails.js index 79834d4a4..b7a5386a1 100644 --- a/frontend/app/components/Session_/Fetch/FetchDetails.js +++ b/frontend/app/components/Session_/Fetch/FetchDetails.js @@ -26,12 +26,14 @@ export default class FetchDetails extends React.PureComponent { try { jsonPayload = typeof payload === 'string' ? JSON.parse(payload) : payload requestHeaders = jsonPayload.headers + jsonPayload.body = typeof jsonPayload.body === 'string' ? JSON.parse(jsonPayload.body) : jsonPayload.body delete jsonPayload.headers } catch (e) {} try { jsonResponse = typeof response === 'string' ? JSON.parse(response) : response; responseHeaders = jsonResponse.headers + jsonResponse.body = typeof jsonResponse.body === 'string' ? JSON.parse(jsonResponse.body) : jsonResponse.body delete jsonResponse.headers } catch (e) {} diff --git a/frontend/app/components/Session_/Fetch/components/Headers/Headers.tsx b/frontend/app/components/Session_/Fetch/components/Headers/Headers.tsx index 812c1b161..6a75afc4b 100644 --- a/frontend/app/components/Session_/Fetch/components/Headers/Headers.tsx +++ b/frontend/app/components/Session_/Fetch/components/Headers/Headers.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { NoContent } from 'UI' +import { NoContent, TextEllipsis } from 'UI' import stl from './headers.css' function Headers(props) { @@ -19,7 +19,9 @@ function Headers(props) { Object.keys(props.requestHeaders).map(h => (
{h}:
-
{props.requestHeaders[h]}
+
+ +
)) } diff --git a/frontend/app/components/Session_/Fetch/components/Headers/headers.css b/frontend/app/components/Session_/Fetch/components/Headers/headers.css index 6ebae3bb5..eb6f26e29 100644 --- a/frontend/app/components/Session_/Fetch/components/Headers/headers.css +++ b/frontend/app/components/Session_/Fetch/components/Headers/headers.css @@ -6,4 +6,8 @@ &:hover { background-color: $active-blue; } + + & div:last-child { + max-width: 80%; + } } \ No newline at end of file diff --git a/frontend/app/components/Session_/Player/Overlay/LiveStatusText.css b/frontend/app/components/Session_/Player/Overlay/LiveStatusText.css index b7a17464b..379667b75 100644 --- a/frontend/app/components/Session_/Player/Overlay/LiveStatusText.css +++ b/frontend/app/components/Session_/Player/Overlay/LiveStatusText.css @@ -1,4 +1,7 @@ .text { color: $gray-light; font-size: 40px; + max-width: 680px; + line-height: 48px; + text-align: center; } \ No newline at end of file diff --git a/frontend/app/components/Session_/Player/Overlay/LiveStatusText.tsx b/frontend/app/components/Session_/Player/Overlay/LiveStatusText.tsx index 7ed13e562..e3eb7fc20 100644 --- a/frontend/app/components/Session_/Player/Overlay/LiveStatusText.tsx +++ b/frontend/app/components/Session_/Player/Overlay/LiveStatusText.tsx @@ -7,5 +7,5 @@ interface Props { } export default function LiveStatusText({ text }: Props) { - return
{text}
+ return
{text}
} \ No newline at end of file