Skip to content

Commit

Permalink
Prevent overlap by setting z-index: 1000 upon Card fullscreen expan…
Browse files Browse the repository at this point in the history
…sion (#1342)
  • Loading branch information
nelsonni committed Nov 6, 2023
1 parent 4d36d96 commit 31f6872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/src/components/Card/BaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const CardComponent = styled('div')<StyledProps>(props => ({
transform: props.dragOverlay ? undefined : CSS.Translate.toString(props.transform),
transition: props.dragOverlay ? undefined : props.transition,
perspective: 1000,
zIndex: 1,
zIndex: props.expanded ? 1000 : 1,
left: props.expanded ? 0 : props.dragOverlay || props.captured ? undefined : props.x,
top: props.expanded ? 38.5 : props.dragOverlay || props.captured ? undefined : props.y,
visibility: !props.dragOverlay && props.dragging ? 'hidden' : 'unset',
Expand Down

0 comments on commit 31f6872

Please sign in to comment.