trying to fix sizes

pull/1857/head
bunsenstraat 3 years ago
parent 641326d9a2
commit a4275c8366
  1. 2
      libs/remix-ui/panel/src/lib/dragbar/dragbar.css
  2. 2
      libs/remix-ui/panel/src/lib/dragbar/dragbar.tsx
  3. 4
      libs/remix-ui/panel/src/lib/main/main-panel.tsx
  4. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
  5. 438
      package-lock.json

@ -17,7 +17,7 @@
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
display: block; display: block;
z-index: 9998; z-index: 900;
} }
.dragbar_terminal:hover, .dragbar_terminal:hover,

@ -23,7 +23,7 @@ const DragBar = (props: IRemixDragBarUi) => {
setOffSet(props.refObject.current.offsetTop) setOffSet(props.refObject.current.offsetTop)
setDragBarPosY(props.refObject.current.offsetTop) setDragBarPosY(props.refObject.current.offsetTop)
}, 1000) }, 1000)
}, []) }, [props.refObject])
useEffect(() => { useEffect(() => {
// setDragBarPosX(offset + (props.hidden ? 0 : props.refObject.current.offsetHeight)) // setDragBarPosX(offset + (props.hidden ? 0 : props.refObject.current.offsetHeight))

@ -24,7 +24,7 @@ const RemixUIMainPanel = () => {
const tmp = delta - limitDown const tmp = delta - limitDown
delta = tmp > 0 ? tmp : 0 delta = tmp > 0 ? tmp : 0
let mainPanelHeight = containerHeight - delta let mainPanelHeight = containerHeight - delta
mainPanelHeight = mainPanelHeight < 0 ? 0 : mainPanelHeight mainPanelHeight = mainPanelHeight < 0 ? 0 : mainPanelHeight - 35
// self.editor.resize((document.querySelector('#editorWrap') || {}).checked) // self.editor.resize((document.querySelector('#editorWrap') || {}).checked)
editorRef.current?.setAttribute('style', `height: ${mainPanelHeight}px`) editorRef.current?.setAttribute('style', `height: ${mainPanelHeight}px`)
terminalRef.current?.setAttribute('style', `height: ${delta}px`) terminalRef.current?.setAttribute('style', `height: ${delta}px`)
@ -56,7 +56,7 @@ const RemixUIMainPanel = () => {
} }
useLayoutEffect(() => { useLayoutEffect(() => {
_adjustLayout(198) // _adjustLayout(70)
}) })
useEffect(() => { useEffect(() => {

@ -434,7 +434,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
} }
return ( return (
<div style={{ height: '323px', flexGrow: 1 }} className='panel' ref={panelRef}> <div style={{ flexGrow: 1 }} className='panel' ref={panelRef}>
<div className="bar"> <div className="bar">
<div className="menu border-top border-dark bg-light" ref={terminalMenu} data-id="terminalToggleMenu"> <div className="menu border-top border-dark bg-light" ref={terminalMenu} data-id="terminalToggleMenu">
<i className={`mx-2 toggleTerminal fas ${isOpen ? 'fa-angle-double-down' : 'fa-angle-double-up'}`} data-id="terminalToggleIcon" onClick={handleToggleTerminal}></i> <i className={`mx-2 toggleTerminal fas ${isOpen ? 'fa-angle-double-down' : 'fa-angle-double-up'}`} data-id="terminalToggleIcon" onClick={handleToggleTerminal}></i>

438
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save