UI improvements and bug fixes

This commit is contained in:
sairaj mote 2023-01-16 20:18:04 +05:30
parent 7703b8009d
commit 50083bfe65
5 changed files with 15 additions and 7 deletions

View File

@ -339,10 +339,12 @@ ul {
}
.ripple {
height: 8rem;
width: 8rem;
position: absolute;
border-radius: 50%;
transform: scale(0);
background: rgba(var(--text-color), 0.16);
background: radial-gradient(circle, rgba(var(--text-color), 0.3) 0%, rgba(0, 0, 0, 0) 50%);
pointer-events: none;
}

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -282,10 +282,16 @@ ul {
margin-right: 0.5rem;
}
.ripple {
height: 8rem;
width: 8rem;
position: absolute;
border-radius: 50%;
transform: scale(0);
background: rgba(var(--text-color), 0.16);
background: radial-gradient(
circle,
rgba(var(--text-color), 0.3) 0%,
rgba(0, 0, 0, 0) 50%
);
pointer-events: none;
}
.interact {

View File

@ -841,12 +841,12 @@
const rippleAnimation = circle.animate(
[
{
transform: "scale(3)",
transform: "scale(4)",
opacity: 0,
},
],
{
duration: 1000,
duration: uiGlobals.prefersReducedMotion ? 0 : 600,
fill: "forwards",
easing: "ease-out",
}
@ -916,7 +916,7 @@
<li id=${id} class="torrent-card">
<a class="torrent-info grid" href=${`#/torrent/${id}`}>
<div class="torrent-card__icon torrent-type-icon">${icon}</div>
<h3 class="torrent-card__title">${filename}</h3>
<h3 class="torrent-card__title breakable">${filename}</h3>
<p class="torrent-card__tags">${tags.replace(/[\/,]/g, ' • ')}</p>
<span class="torrent-card__uploader">${`by ${uploader}`}</span>
</a>

File diff suppressed because one or more lines are too long