vscode-cosmosdb
vscode-cosmosdb copied to clipboard
feat: The edit mode was removed. View | Edit | Delete buttons are available if there are selected rows
This pull request includes several changes to the QueryEditor and ResultPanel components to improve the user interface and functionality. The most important changes include modifications to the styles, the addition of a new toolbar, and the removal of the EditMode feature.
Style Adjustments:
src/webviews/Document/DocumentPanel.tsx: Updated thecontainerclass to include amarginTopof10pxand adjusted the height calculation.src/webviews/QueryEditor/QueryEditor.tsx: Added aminWidthof900pxto therootclass.src/webviews/QueryEditor/ResultPanel/ResultPanel.tsx: Fixed thetabsclass to useflexGrowinstead of a commented-out property and updated theactionBarclass to use camelCase properties.src/webviews/QueryEditor/ResultPanel/ResultTab.tsx: Simplified thecontainerclass by removing unnecessary styles and adjusting the height calculation.
Toolbar Enhancements:
src/webviews/QueryEditor/ResultPanel/ResultPanel.tsx: Added a newResultTabToolbarcomponent to theResultPanelcomponent.src/webviews/QueryEditor/ResultPanel/ResultTabToolbar.tsx: Refactored theResultTabToolbarto remove theEditModefeature, add aDropdownfor changing view modes, and streamline toolbar buttons for document actions. [1] [2]
Code Cleanup:
src/webviews/QueryEditor/ResultPanel/ResultTabViewTable.tsx: Removed unnecessaryuseEffecthook and cleaned up the component.src/webviews/QueryEditor/state/QueryEditorContextProvider.tsx: Removed thesetEditModemethod and related dispatch actions.src/webviews/QueryEditor/state/QueryEditorState.tsx: Removed theEditModetype and related state management. [1] [2] [3]
Theme Adjustments:
src/webviews/theme/vscode-to-slickgrid2.scss: Updated theslick-row-selected-colorandslick-row-highlight-background-colorto use different VSCode theme variables.