nicer sizing and stuff
This commit is contained in:
@@ -9,7 +9,7 @@ export default function LineDetailsTerminal({
|
||||
return (
|
||||
<div
|
||||
id={`${selectedLine.lineId}-lineDetailsTerminal`}
|
||||
className="flex flex-col bg-gray-100 w-[400px]"
|
||||
className="flex flex-col bg-gray-100 w-[400px] flex-1"
|
||||
>
|
||||
{/* line overview header */}
|
||||
<div className="flex flex-row p-3 items-center gap-1">
|
||||
|
||||
@@ -16,6 +16,7 @@ import LineDetailsTerminal from "../lineDetailsTerminal";
|
||||
import NirvanaHeader from "../../components/header/index";
|
||||
import NirvanaTerminal from "../terminal";
|
||||
import Overlay from "../overlay";
|
||||
import { Radio } from "antd";
|
||||
import { useRecoilValue } from "recoil";
|
||||
|
||||
export interface ILineDetails {
|
||||
@@ -302,9 +303,21 @@ export default function NirvanaRouter() {
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col h-screen">
|
||||
<NirvanaHeader onHeaderFocus={() => setDesktopMode("terminal")} />
|
||||
|
||||
<Radio.Group
|
||||
value={desktopMode}
|
||||
onChange={(e) => setDesktopMode(e.target.value)}
|
||||
>
|
||||
<Radio.Button value={"terminal"}>terminal</Radio.Button>
|
||||
<Radio.Button value={"terminalDetails"}>
|
||||
terminal and details
|
||||
</Radio.Button>
|
||||
<Radio.Button value={"flowState"}>flow state</Radio.Button>
|
||||
<Radio.Button value={"overlayOnly"}>overlay only</Radio.Button>
|
||||
</Radio.Group>
|
||||
|
||||
<div className="flex flex-row flex-1">
|
||||
{(desktopMode === "terminal" || desktopMode === "terminalDetails") && (
|
||||
<NirvanaTerminal
|
||||
@@ -317,7 +330,7 @@ export default function NirvanaRouter() {
|
||||
<LineDetailsTerminal selectedLine={selectedLine} />
|
||||
)}
|
||||
|
||||
<Overlay />
|
||||
{desktopMode !== "flowState" && <Overlay />}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user