Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mitodrummer committed Apr 17, 2023
1 parent 63bcf7c commit 115e7ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,12 @@ export function ProcessTreeNode({
}

onProcessSelected?.(process);

if (isSessionLeader && scrollerRef.current) {
scrollerRef.current.scrollTop = 0;
}
},
[onProcessSelected, process]
[isSessionLeader, onProcessSelected, process, scrollerRef]
);

const processDetails = process.getDetails();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export const useStyles = ({
processNode.position = 'sticky';
processNode.top = '-' + size.base;
processNode.zIndex = 1;
processNode.marginBottom = size.s;
processNode.borderTop = `${size.base} solid transparent`;
processNode.backgroundColor = euiVars.euiColorLightestShade;
processNode.borderBottom = border.editable;
Expand Down

0 comments on commit 115e7ee

Please sign in to comment.