Make refresh button spin counter clockwise (#1155)

This commit is contained in:
Leendert de Borst
2025-08-28 23:20:19 +02:00
committed by Leendert de Borst
parent 1cf28c43fb
commit 4d66ea9694
3 changed files with 24 additions and 1 deletions

View File

@@ -52,6 +52,15 @@ module.exports = {
minWidth: {
'kanban': '28rem'
},
animation: {
'spin-ccw': 'spin-ccw 1s linear infinite',
},
keyframes: {
'spin-ccw': {
'from': { transform: 'rotate(0deg)' },
'to': { transform: 'rotate(-360deg)' }
}
},
},
},
plugins: [

View File

@@ -1171,6 +1171,20 @@ video {
animation: spin 1s linear infinite;
}
@keyframes spin-ccw {
from {
transform: rotate(0deg);
}
to {
transform: rotate(-360deg);
}
}
.animate-spin-ccw {
animation: spin-ccw 1s linear infinite;
}
.cursor-not-allowed {
cursor: not-allowed;
}

View File

@@ -72,6 +72,6 @@
/// <returns>A string containing the CSS classes for the icon.</returns>
private string GetIconClasses()
{
return $"w-4 h-4 {(IsRefreshing ? "animate-spin" : "")}";
return $"w-4 h-4 {(IsRefreshing ? "animate-spin-ccw" : "")}";
}
}