ui(playlists): restore subtle borders; use box-shadow for drag highlight without altering base border styles
This commit is contained in:
parent
4e123d2597
commit
8394f4b42f
@ -164,8 +164,7 @@ const PlaylistItem: React.FC<PlaylistItemProps> = React.memo(({
|
||||
}
|
||||
setIsDragOver(false);
|
||||
}}
|
||||
borderColor={isDragOver ? 'blue.400' : undefined}
|
||||
borderWidth={isDragOver ? '1px' : undefined}
|
||||
boxShadow={isDragOver ? 'inset 0 0 0 1px var(--chakra-colors-blue-400)' : 'none'}
|
||||
>
|
||||
{level > 0 && (
|
||||
<Box
|
||||
@ -225,6 +224,9 @@ const PlaylistItem: React.FC<PlaylistItemProps> = React.memo(({
|
||||
borderRight="1px solid"
|
||||
borderRightColor="whiteAlpha.200"
|
||||
position="relative"
|
||||
border="1px solid"
|
||||
borderColor={selectedItem === node.name ? 'blue.800' : 'transparent'}
|
||||
_hover={{ ...(selectedItem === node.name ? {} : { borderColor: 'whiteAlpha.300' }) }}
|
||||
onDragOver={(e) => {
|
||||
e.preventDefault();
|
||||
const types = Array.from((e.dataTransfer.types || []) as any);
|
||||
@ -248,8 +250,7 @@ const PlaylistItem: React.FC<PlaylistItemProps> = React.memo(({
|
||||
}
|
||||
setIsDragOver(false);
|
||||
}}
|
||||
borderColor={isDragOver ? 'blue.400' : (selectedItem === node.name ? 'blue.700' : 'transparent')}
|
||||
borderWidth={isDragOver || selectedItem === node.name ? '1px' : undefined}
|
||||
boxShadow={isDragOver ? 'inset 0 0 0 1px var(--chakra-colors-blue-400)' : 'none'}
|
||||
>
|
||||
{level > 0 && (
|
||||
<Box
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user