Skip to content

Commit

Permalink
Alternate row background color and make the serial number cell distin…
Browse files Browse the repository at this point in the history
…ct. #2875 #7863
  • Loading branch information
Rohit Bhati committed Sep 11, 2024
1 parent 306269a commit db4e6ff
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 2 deletions.
Binary file modified docs/en_US/images/editgrid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/en_US/images/geometry_viewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/en_US/images/query_execute_query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/en_US/images/query_execute_script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/en_US/images/query_output_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/en_US/images/query_tool_editable_columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/pgadmin/static/js/tree/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class Tree {
let result = {};
if (identifier === undefined) return;
let item = TreeNode.prototype.isPrototypeOf(identifier) ? identifier : this.findNode(identifier.path);
if (item === undefined) return;
if (item === undefined || item === null) return;
do {
const currentNodeData = item.getData();
if (currentNodeData._type in this.Nodes && this.Nodes[currentNodeData._type].hasId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const StyledPgReactDataGrid = styled(PgReactDataGrid)(({theme})=>({
},
'& .QueryTool-rowNumCell': {
padding: '0px 8px',
fontWeight: 900,
color: theme.otherVars.tree.textFg,
},
'& .QueryTool-colHeaderSelected': {
outlineColor: theme.palette.primary.main,
Expand All @@ -63,7 +65,15 @@ const StyledPgReactDataGrid = styled(PgReactDataGrid)(({theme})=>({
outlineColor: theme.palette.primary.main,
backgroundColor: theme.palette.primary.light,
color: theme.otherVars.qtDatagridSelectFg,
}
},
'& .rdg-row': {
'&:nth-of-type(even)': {
backgroundColor: theme.palette.grey[200],
},
'& .rdg-cell:nth-of-type(1)': {
backgroundColor: theme.palette.background.default + ' !important',
},
},
}));

export const RowInfoContext = React.createContext();
Expand Down

0 comments on commit db4e6ff

Please sign in to comment.