From cb9575e224a0a4f228c2ce36b3bbe5e86a870c55 Mon Sep 17 00:00:00 2001 From: Zamfirov Date: Mon, 15 Jan 2024 16:20:24 +0100 Subject: [PATCH] Fix styling issue of Structure Settings Dropdown --- media/style.css | 13 ++++++ src/viewer/structures/StructureDialog.tsx | 9 ++-- .../structures/StructureSettingsDropdown.tsx | 43 +++++++++++++------ 3 files changed, 48 insertions(+), 17 deletions(-) diff --git a/media/style.css b/media/style.css index b6a20df..56c8daf 100644 --- a/media/style.css +++ b/media/style.css @@ -14,6 +14,19 @@ box-shadow: 0 2px 8px var(--vscode-widget-shadow); } +.structure-settings-dropdown { + background-color: var(--vscode-menu-background); +} + +.structure-settings-dropdown-item { + color: var(--vscode-menu-foreground); + background-color: var(--vscode-menu-background); +} + +.structure-dialog-icon { + color: var(--vscode-menu-foreground); +} + ::selection { color: var(--vscode-menu-background); background-color: var(--vscode-menu-foreground); diff --git a/src/viewer/structures/StructureDialog.tsx b/src/viewer/structures/StructureDialog.tsx index 209c72d..39ffc8f 100644 --- a/src/viewer/structures/StructureDialog.tsx +++ b/src/viewer/structures/StructureDialog.tsx @@ -545,6 +545,7 @@ export default class StructureDialog extends React.Component { display: "flex", flexDirection: "row", alignItems: "center", + justifyContent: "space-between" }} > { > - + this.props.onClose()}> - + - void; @@ -39,7 +52,7 @@ export const StructureSettingsDropdown: React.FunctionComponent - + handleClose('')} MenuListProps={{ 'aria-labelledby': 'basic-button', + sx: { py: 0 } }} > - {/* Profile */} - handleClose('save')}> - - - - Save Structure Definition - - handleClose('load')}> - - - - Load Structure Definition - + + handleClose('save')}> + + + + Save Structure Definition + + handleClose('load')}> + + + + Load Structure Definition + + );