Remove taskbar item animation

This commit is contained in:
Nariman Jelveh
2025-10-26 17:12:21 -07:00
parent 3720369d87
commit bce244b867
2 changed files with 13 additions and 13 deletions
+13 -1
View File
@@ -116,10 +116,22 @@ async function update_usage_details($el_window){
if(typeof res.usage[key] !== 'object')
continue;
// get the units
let units = res.usage[key].units;
// Bytes should be formatted as human readable
if(key.startsWith('filesystem:') && key.endsWith(':bytes')){
units = window.byte_format(units);
}
// Everything else should be formatted as a number
else{
units = window.number_format(units, {decimals: 0, thousandSeparator: ','});
}
h += `
<tr>
<td>${key}</td>
<td>${window.number_format(res.usage[key].units, {decimals: 0, thousandSeparator: ','})}</td>
<td>${units}</td>
<td>${window.number_format(res.usage[key].cost / 100_000_000, { decimals: 2, prefix: '$' })}</td>
</tr>`;
}
-12
View File
@@ -112,18 +112,6 @@ function UITaskbarItem(options){
if($(el_taskbar_item).hasClass('has-open-contextmenu'))
return;
el_taskbar_item.querySelector("img").animate(
[
{ transform: 'translateY(0) scale(1)' },
{ transform: 'translateY(-5px) scale(1.2)' },
{ transform: 'translateY(0) scale(1)' }
],
{
duration: 300,
easing: 'ease-out',
}
);
if(options.onClick === undefined || options.onClick(el_taskbar_item) === false){
// re-show each window in this app group
$(`.window[data-app="${options.app}"]`).showWindow();