Skip to content

Commit

Permalink
Tune styles more; fix collapsed state margins
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed May 28, 2024
1 parent 31db2ed commit 89388ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions public/pages/workflow_detail/resizable_workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
collapseFnHorizontal.current(WORKFLOW_INPUTS_PANEL_ID, {
direction: 'left',
});
setIsWorkflowInputsPanelOpen(!isWorkflowInputsPanelOpen);
};

// Tools side panel state
Expand All @@ -103,6 +104,7 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
);
const onToggleToolsChange = () => {
collapseFnVertical.current(TOOLS_PANEL_ID, { direction: 'bottom' });
setIsToolsPanelOpen(!isToolsPanelOpen);
};

// Selected component state
Expand Down Expand Up @@ -274,7 +276,7 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
direction="horizontal"
className="stretch-absolute"
style={{
marginLeft: '-8px',
marginLeft: isWorkflowInputsPanelOpen ? '-8px' : '0px',
marginTop: '-8px',
}}
>
Expand Down Expand Up @@ -307,7 +309,10 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
</EuiResizablePanel>
<EuiResizableButton />
<EuiResizablePanel
style={{ marginRight: '-32px' }}
style={{
marginRight: '-32px',
marginBottom: isToolsPanelOpen ? '0px' : '24px',
}}
mode="main"
initialSize={60}
minSize="25%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
style={{
overflowY: 'scroll',
overflowX: 'hidden',
maxHeight: '55vh',
}}
>
{selectedStep === CREATE_STEP.INGEST ? (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.workspace-panel {
height: 90%;
height: 95%;
}

0 comments on commit 89388ac

Please sign in to comment.