mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Merge pull request #62 from SimonBrandner/feature/resize-devtools
Make new devtools re-sizable
This commit is contained in:
commit
3790ce3e0e
@ -1,3 +1,4 @@
|
||||
import { Resizable } from "re-resizable";
|
||||
import React, { useEffect, useState, useMemo } from "react";
|
||||
import { useCallback } from "react";
|
||||
import ReactJson from "react-json-view";
|
||||
@ -120,7 +121,7 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
||||
}, [toDeviceEvents]);
|
||||
|
||||
return (
|
||||
<div style={{ maxHeight: "25%", overflowY: "auto" }}>
|
||||
<Resizable enable={{ top: true }} >
|
||||
{show && (
|
||||
<ReactJson
|
||||
theme="monokai"
|
||||
@ -136,8 +137,9 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
||||
displayDataTypes={false}
|
||||
displayObjectSize={false}
|
||||
enableClipboard={false}
|
||||
style={{ height: "100%", overflowY: "scroll" }}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Resizable>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user