Fix ordering to allow close button to be clicked.
The previous change that made the images laid out using absolute meant that the close button was layered below the sprite image, making it now clickable
This commit is contained in:
1 parent
f4c1887872
commit
dfc13e2e54
1 file changed
+7
-7
@@ -26,13 +26,6 @@ const SpriteSelectorItem = props => (
|
||||
disable={props.dragging}
|
||||
id={`${props.name}-${contextMenuId}`}
|
||||
>
|
||||
{(props.selected && props.onDeleteButtonClick) ? (
|
||||
<CloseButton
|
||||
className={styles.deleteButton}
|
||||
size={CloseButton.SIZE_SMALL}
|
||||
onClick={props.onDeleteButtonClick}
|
||||
/>
|
||||
) : null }
|
||||
{typeof props.number === 'undefined' ? null : (
|
||||
<div className={styles.number}>{props.number}</div>
|
||||
)}
|
||||
@@ -53,6 +46,13 @@ const SpriteSelectorItem = props => (
|
||||
<div className={styles.spriteDetails}>{props.details}</div>
|
||||
) : null}
|
||||
</div>
|
||||
{(props.selected && props.onDeleteButtonClick) ? (
|
||||
<CloseButton
|
||||
className={styles.deleteButton}
|
||||
size={CloseButton.SIZE_SMALL}
|
||||
onClick={props.onDeleteButtonClick}
|
||||
/>
|
||||
) : null }
|
||||
{props.onDuplicateButtonClick || props.onDeleteButtonClick || props.onExportButtonClick ? (
|
||||
<ContextMenu id={`${props.name}-${contextMenuId++}`}>
|
||||
{props.onDuplicateButtonClick ? (
|
||||
|
||||
Reference in new issue
Block a user