Remove refresh button

This commit is contained in:
grandeljay 2022-02-27 14:03:37 +01:00
parent 0839c730ff
commit 08a97c7d7f
3 changed files with 0 additions and 56 deletions

View file

@ -106,41 +106,6 @@ img {
opacity: 1;
}
/** Refresh */
.ui.card > .image > button {
transition: 0.4s ease opacity;
animation: buttonWorking 2s linear infinite paused;
position: absolute;
top: calc(0.91666667em / 2);
right: calc(0.91666667em / 2);
margin: 0;
background-color: transparent;
z-index: 2;
}
@media (hover: hover) {
.ui.card > .image > button {
opacity: 0;
}
.ui.card:hover > .image > button {
opacity: 1;
}
}
.ui.card > .image > button.working {
animation-play-state: running;
}
@keyframes buttonWorking {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
/** Content */
.ui.card > .content > .header {
max-height: calc(2 * 1.28571429em);

View file

@ -125,7 +125,6 @@ $(function () {
card = $(card);
var href = card.find('.content [href]').prop('href');
var refresh = card.find('button.refresh');
if (!href) {
return;
@ -156,22 +155,8 @@ $(function () {
$('.ui.dropdown').dropdown();
});
refresh.removeClass('working');
}
/**
* Refresh
*/
$(document).on('click', '.ui.button.refresh', function (event) {
var button = $(event.currentTarget);
var card = button.closest('.ui.card');
button.addClass('working');
generateCacheCard(card);
});
/**
* Delete Wishlist
*/

View file

@ -94,12 +94,6 @@ class Wish
<?php if (isset($this->info->providerName)) { ?>
<span class="provider"><?= $this->info->providerName ?></span>
<?php } ?>
<?php if ($userIsCurrent && isset($this->url)) { ?>
<button class="ui icon button refresh">
<i class="refresh icon"></i>
</button>
<?php } ?>
</div>
<div class="content">