diff --git a/libs/remix-ui/app/src/lib/remix-app/dragbar/dragbar.css b/libs/remix-ui/app/src/lib/remix-app/dragbar/dragbar.css index a423dd6605..1330c1179c 100644 --- a/libs/remix-ui/app/src/lib/remix-app/dragbar/dragbar.css +++ b/libs/remix-ui/app/src/lib/remix-app/dragbar/dragbar.css @@ -1,26 +1,27 @@ /* dragbar UI */ -.dragbar { - display : block; - height : 100%; - position : absolute; - left: 0px; - top: 0px; - width: 0.3em; - z-index: 9999; - } - - .overlay { - position: absolute; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - display: block; - z-index: 9998; - } - - .dragbar:hover, .dragbar.ondrag{ - background-color: var(--secondary); - cursor:col-resize; - } \ No newline at end of file +.dragbar { + display: block; + height: 100%; + position: absolute; + left: 0px; + top: 0px; + width: 0.3em; + z-index: 9999; +} + +.overlay { + position: absolute; + left: 0; + top: 0; + width: 100vw; + height: 100vh; + display: block; + z-index: 9998; +} + +.dragbar:hover, +.dragbar.ondrag { + background-color: var(--secondary); + cursor: col-resize; +} diff --git a/libs/remix-ui/panel/src/lib/dragbar/dragbar.css b/libs/remix-ui/panel/src/lib/dragbar/dragbar.css new file mode 100644 index 0000000000..09912437aa --- /dev/null +++ b/libs/remix-ui/panel/src/lib/dragbar/dragbar.css @@ -0,0 +1,27 @@ +/* dragbar UI */ + +.dragbar_terminal { + display: block; + width: 100%; + position: absolute; + left: 0px; + top: 0px; + height: 0.3em; + z-index: 9999; +} + +.overlay { + position: absolute; + left: 0; + top: 0; + width: 100vw; + height: 100vh; + display: block; + z-index: 9998; +} + +.dragbar_terminal:hover, +.dragbar_terminal.ondrag { + background-color: var(--secondary); + cursor: row-resize; +} diff --git a/libs/remix-ui/panel/src/lib/main/main-panel.css b/libs/remix-ui/panel/src/lib/main/main-panel.css index cf7a841527..5e1dc17d54 100644 --- a/libs/remix-ui/panel/src/lib/main/main-panel.css +++ b/libs/remix-ui/panel/src/lib/main/main-panel.css @@ -3,4 +3,5 @@ flex-direction : column; height : 100%; width : 100%; + position: relative; } \ No newline at end of file diff --git a/libs/remix-ui/panel/src/lib/main/main-panel.tsx b/libs/remix-ui/panel/src/lib/main/main-panel.tsx index 87a998eb27..c3dfeffb25 100644 --- a/libs/remix-ui/panel/src/lib/main/main-panel.tsx +++ b/libs/remix-ui/panel/src/lib/main/main-panel.tsx @@ -1,5 +1,6 @@ import AppContext from 'libs/remix-ui/app/src/lib/remix-app/context/context' import React, { useContext, useEffect, useRef, useState } from 'react' // eslint-disable-line +import DragBar from '../dragbar/dragbar' import RemixUIPanelPlugin from '../plugins/panel-plugin' import { PluginRecord } from '../types' import './main-panel.css' @@ -64,11 +65,14 @@ const RemixUIMainPanel = () => {
{Object.values(plugins).map((pluginRecord, i) => { return ( + <> + {(pluginRecord.profile.name === 'terminal') ? :<>} + ) })}
diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index 132196724b..ec36256645 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -435,7 +435,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { return (
-