fix: add hover effect on record table action row (#9633)
Related to this discord follow up https://discord.com/channels/1130383047699738754/1328751649174585427
This commit is contained in:
@ -8,18 +8,26 @@ import { IconComponent } from 'twenty-ui';
|
|||||||
|
|
||||||
const StyledRecordTableDraggableTr = styled(RecordTableDraggableTr)`
|
const StyledRecordTableDraggableTr = styled(RecordTableDraggableTr)`
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: background-color ${({ theme }) => theme.animation.duration.fast}
|
||||||
|
ease-in-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: ${({ theme }) => theme.background.transparent.light};
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledIconContainer = styled(RecordTableTd)`
|
const StyledIconContainer = styled(RecordTableTd)`
|
||||||
|
align-items: center;
|
||||||
|
background-color: transparent;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
color: ${({ theme }) => theme.font.color.secondary};
|
color: ${({ theme }) => theme.font.color.secondary};
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledRecordTableTdTextContainer = styled(RecordTableTd)`
|
const StyledRecordTableTdTextContainer = styled(RecordTableTd)`
|
||||||
|
background-color: transparent;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ export const RecordTableDraggableTr = forwardRef<
|
|||||||
...draggableProvided.draggableProps.style,
|
...draggableProvided.draggableProps.style,
|
||||||
background: draggableSnapshot.isDragging
|
background: draggableSnapshot.isDragging
|
||||||
? theme.background.transparent.light
|
? theme.background.transparent.light
|
||||||
: 'none',
|
: undefined,
|
||||||
borderColor: draggableSnapshot.isDragging
|
borderColor: draggableSnapshot.isDragging
|
||||||
? `${theme.border.color.medium}`
|
? `${theme.border.color.medium}`
|
||||||
: 'transparent',
|
: 'transparent',
|
||||||
|
|||||||
Reference in New Issue
Block a user