1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-28 17:20:13 +02:00

fix action btns in list

This commit is contained in:
Kushagra Gour
2024-03-13 19:17:20 +05:30
parent 93b6773361
commit f28b5405a0
2 changed files with 27 additions and 25 deletions

View File

@@ -254,30 +254,28 @@ const Assets = () => {
}`}
>
{/* <a href={file.url} target="_blank" rel="noopener noreferrer"> */}
<div class="d-f relative">
<img src={file.url} />{' '}
<div class="asset-manager__file-actions">
<Stack gap={1} fullWidth justify="center">
<button
class={`btn btn--dark ${
listType === 'list' ? 'btn--active' : ''
} hint--rounded hint--top-left`}
onClick={() => copyFileUrl(file.url)}
aria-label="Copy URL"
>
<Icon name="copy" />
</button>
<button
class={`btn btn--dark ${
listType === 'list' ? 'btn--active' : ''
} hint--rounded hint--top-left`}
onClick={() => removeFileHandler(index)}
aria-label="Delete"
>
<Icon name="trash" />
</button>
</Stack>
</div>
<img src={file.url} />{' '}
<div class="asset-manager__file-actions">
<Stack gap={1} fullWidth justify="center">
<button
class={`btn btn--dark ${
listType === 'list' ? 'btn--active' : ''
} hint--rounded hint--top-left`}
onClick={() => copyFileUrl(file.url)}
aria-label="Copy URL"
>
<Icon name="copy" />
</button>
<button
class={`btn btn--dark ${
listType === 'list' ? 'btn--active' : ''
} hint--rounded hint--top-left`}
onClick={() => removeFileHandler(index)}
aria-label="Delete"
>
<Icon name="trash" />
</button>
</Stack>
</div>
<span class="asset-manager__file-name">{file.name}</span>
{/* </a> */}