Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions code/core/src/manager/components/sidebar/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ const empty = {
node: null,
};

const FloatingStatusButton = styled(StatusButton)({
background: 'var(--tree-node-background-hover)',
boxShadow: '0 0 5px 5px var(--tree-node-background-hover)',
position: 'absolute',
right: 0,
zIndex: 1,
const FloatingStatusButton = styled(StatusButton)(({ theme }) => {
// --tree-node-background-hover, but opaque to avoid layering colors
const background = theme.base === 'dark' ? '#1b2432' : '#ddebfa';
Comment thread
ghengeveld marked this conversation as resolved.
return {
background,
boxShadow: `0 0 5px 5px ${background}`,
position: 'absolute',
right: 0,
zIndex: 1,
};
});

export const useContextMenu = (context: API_HashEntry, links: Link[], api: API) => {
Expand Down
Loading