1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-09 16:06:21 +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,7 +254,6 @@ 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">
@ -278,7 +277,6 @@ const Assets = () => {
</button>
</Stack>
</div>
</div>
<span class="asset-manager__file-name">{file.name}</span>
{/* </a> */}
</div>

View File

@ -2125,6 +2125,7 @@ while the theme CSS file is loading */
.asset-manager__file {
display: flex;
gap: 0.5rem;
position: relative;
}
.asset-manager__file-name {
max-width: 100%;
@ -2145,7 +2146,6 @@ while the theme CSS file is loading */
.asset-manager__file-actions {
position: absolute;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
padding: 0.5rem 0;
@ -2155,6 +2155,10 @@ while the theme CSS file is loading */
background-color: rgb(255 255 255 / 15%);
backdrop-filter: blur(5px);
}
.asset-manager__file--grid .asset-manager__file-actions {
left: 0;
bottom: 1.5em;
}
.asset-manager__file:hover .asset-manager__file-actions {
transform: translateY(0rem);
opacity: 1;