Make new devtools re-sizable
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								f5142ba93e
							
						
					
				
			
			
				commit
				
					
						9495caf919
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					import { Resizable } from "re-resizable";
 | 
				
			||||||
import React, { useEffect, useState, useMemo } from "react";
 | 
					import React, { useEffect, useState, useMemo } from "react";
 | 
				
			||||||
import { useCallback } from "react";
 | 
					import { useCallback } from "react";
 | 
				
			||||||
import ReactJson from "react-json-view";
 | 
					import ReactJson from "react-json-view";
 | 
				
			||||||
| 
						 | 
					@ -120,7 +121,7 @@ export function GroupCallInspector({ client, groupCall, show }) {
 | 
				
			||||||
  }, [toDeviceEvents]);
 | 
					  }, [toDeviceEvents]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <div style={{ maxHeight: "25%", overflowY: "auto" }}>
 | 
					    <Resizable enable={{ top: true }} >
 | 
				
			||||||
      {show && (
 | 
					      {show && (
 | 
				
			||||||
        <ReactJson
 | 
					        <ReactJson
 | 
				
			||||||
          theme="monokai"
 | 
					          theme="monokai"
 | 
				
			||||||
| 
						 | 
					@ -136,8 +137,9 @@ export function GroupCallInspector({ client, groupCall, show }) {
 | 
				
			||||||
          displayDataTypes={false}
 | 
					          displayDataTypes={false}
 | 
				
			||||||
          displayObjectSize={false}
 | 
					          displayObjectSize={false}
 | 
				
			||||||
          enableClipboard={false}
 | 
					          enableClipboard={false}
 | 
				
			||||||
 | 
					          style={{ height: "100%", overflowY: "scroll" }}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
      )}
 | 
					      )}
 | 
				
			||||||
    </div>
 | 
					    </Resizable>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue