Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 76017d5

Browse files
Merge pull request #2056 from iamfaran/feat/1868-override-cell
[Feat]: #1868 prevent cell styles on selected row
2 parents 00d7804 + b966464 commit 76017d5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

‎client/packages/lowcoder/src/comps/comps/tableComp/tableStyles.ts‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ export const getStyle = (
3636
// selected row
3737
> tr:nth-of-type(2n + 1).ant-table-row-selected {
3838
background: ${selectedRowBackground || rowStyle.background} !important;
39-
> td.ant-table-cell {
40-
background: transparent !important;
41-
}
4239
4340
// > td.ant-table-cell-row-hover,
4441
&:hover {
@@ -48,9 +45,6 @@ export const getStyle = (
4845
4946
> tr:nth-of-type(2n).ant-table-row-selected {
5047
background: ${selectedRowBackground || alternateBackground} !important;
51-
> td.ant-table-cell {
52-
background: transparent !important;
53-
}
5448
5549
// > td.ant-table-cell-row-hover,
5650
&:hover {
@@ -276,15 +270,8 @@ export const TableWrapper = styled.div.attrs<{
276270
}
277271
278272
/* Fix for selected and hovered rows */
279-
tr.ant-table-row-selected td.ant-table-cell-fix-left,
280-
tr.ant-table-row-selected td.ant-table-cell-fix-right {
281-
background-color: ${(props) => props.$rowStyle?.selectedRowBackground || '#e6f7ff'} !important;
282-
}
283273
284-
tr.ant-table-row:hover td.ant-table-cell-fix-left,
285-
tr.ant-table-row:hover td.ant-table-cell-fix-right {
286-
background-color: ${(props) => props.$rowStyle?.hoverRowBackground || '#f5f5f5'} !important;
287-
}
274+
288275
289276
thead > tr:first-child {
290277
th:last-child {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /