Skip to content

Commit

Permalink
4001 - Rename vars to lastEditableRow and lastEditableCol
Browse files Browse the repository at this point in the history
  • Loading branch information
yaguzmang committed Jan 20, 2025
1 parent d72aafd commit 7aedb22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/client/components/DataGrid/DataCell/DataCell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $highlight-top-bottom: inset 0 1px $ui-accent, inset 0 -1px $ui-accent;
border-left: $border-editable;
border-top: $border-editable;

&.bottomEditable {
&.lastEditableRow {
border-bottom: $border-editable;
}

Expand All @@ -91,7 +91,7 @@ $highlight-top-bottom: inset 0 1px $ui-accent, inset 0 -1px $ui-accent;
border-bottom: $border-editable;
}

&.rightEditable {
&.lastEditableCol {
border-right: $border-editable;
}

Expand Down Expand Up @@ -168,7 +168,7 @@ $highlight-top-bottom: inset 0 1px $ui-accent, inset 0 -1px $ui-accent;
border-left: $border-editable;
}

&.rightEditable {
&.lastEditableCol {
border-left: $border-editable;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export const useCellBorderCorrection = (props: Props) => {

if (!Objects.isEmpty(rightCell) && !rightCell.classList.contains('editable')) {
if (!rightCell.classList.contains('actions')) {
cell.classList.add('rightEditable')
cell.classList.add('lastEditableCol')
}
}

if (!Objects.isEmpty(bottomCell) && !bottomCell.classList.contains('editable')) {
if (!bottomCell.classList.contains('actions')) {
cell.classList.add('bottomEditable')
cell.classList.add('lastEditableRow')
}
}
})
Expand Down

0 comments on commit 7aedb22

Please sign in to comment.