From b2dfd90a63f1b7c00f698949dbd41ef6b54b8462 Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Mon, 9 Sep 2024 12:10:15 -0500 Subject: [PATCH 1/2] Fix context menu styles --- .../components/CollapsedActions.styles.ts | 2 +- .../components/CollapsedActions.tsx | 4 +-- .../internalComponents/ContextMenu.styles.ts | 2 +- .../internalComponents/ContextMenu.tsx | 32 +++++++++---------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.styles.ts b/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.styles.ts index b276c44ff..b12e91289 100644 --- a/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.styles.ts +++ b/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.styles.ts @@ -8,7 +8,7 @@ const defaultStyles: ThemeStyleFn = ({ theme, isDarkTheme }) => css` margin: 0; border-radius: ${theme.shape.borderRadius}; - .list-item { + .collapsed-action-list-item { border-radius: ${theme.shape.borderRadius}; font-size: ${theme.typography.sizes.xs}; padding-right: ${theme.spacing["2x"]}; diff --git a/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.tsx b/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.tsx index 4b5bb763e..89ea84eab 100644 --- a/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.tsx +++ b/packages/graph-explorer/src/components/ModuleContainer/components/CollapsedActions.tsx @@ -49,7 +49,7 @@ const CollapsedActions = ({ > { onActionClick(action.value); diff --git a/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.styles.ts b/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.styles.ts index c6253843e..2b6acafea 100644 --- a/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.styles.ts +++ b/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.styles.ts @@ -19,7 +19,7 @@ const defaultStyles: ThemeStyleFn = ({ theme }) => css` padding: ${theme.spacing.base} ${theme.spacing["4x"]}; } - .list-item { + .context-menu-list-item { &.list-item-header { .primary { font-weight: ${theme.typography.weight?.bold}; diff --git a/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.tsx b/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.tsx index 7c731b3c2..30e326691 100644 --- a/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.tsx +++ b/packages/graph-explorer/src/modules/GraphViewer/internalComponents/ContextMenu.tsx @@ -181,14 +181,14 @@ const ContextMenu = ({ > } > {getDisplayNames(affectedNode)?.name}
} @@ -196,7 +196,7 @@ const ContextMenu = ({ Details Panel } @@ -204,7 +204,7 @@ const ContextMenu = ({ Expand Panel
} @@ -234,14 +234,14 @@ const ContextMenu = ({ > } > {getDisplayNames(affectedEdge)?.name}
} @@ -249,7 +249,7 @@ const ContextMenu = ({ Details Panel
} @@ -278,7 +278,7 @@ const ContextMenu = ({ > } @@ -286,7 +286,7 @@ const ContextMenu = ({ {nonEmptySelection ? "Fit Selection to Frame" : "Fit to Frame"} } @@ -294,7 +294,7 @@ const ContextMenu = ({ {nonEmptySelection ? "Center Selection" : "Center"} } @@ -303,7 +303,7 @@ const ContextMenu = ({
} @@ -311,7 +311,7 @@ const ContextMenu = ({ Zoom in } @@ -322,7 +322,7 @@ const ContextMenu = ({ <>
} From 71d924336afae35e14ff03b5f7e5b91a126afa1c Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Mon, 9 Sep 2024 12:14:50 -0500 Subject: [PATCH 2/2] Update changelog --- Changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Changelog.md b/Changelog.md index 435c975ee..920de5e1c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,10 @@ # graph-explorer Change Log +## Upcoming + +- Fix context menu styles + ([#600](https://github.com/aws/graph-explorer/pull/600)) + ## Release 1.10.0 This release includes some new features to make managing and supporting Graph