Refactor animation code for tab editing to improve readability and maintainability

This commit is contained in:
mr. M
2025-02-15 09:57:40 +01:00
committed by mr. m
parent 945eec6931
commit 8372671b70

View File

@@ -643,11 +643,15 @@ var gZenVerticalTabsManager = {
}
// Maybe add some confetti here?!?
gZenUIManager.motion.animate(this._tabEdited, {
scale: [1, 0.98, 1],
}, {
duration: 0.25,
});
gZenUIManager.motion.animate(
this._tabEdited,
{
scale: [1, 0.98, 1],
},
{
duration: 0.25,
}
);
this._tabEdited.querySelector('.tab-editor-container').remove();
label.classList.remove('tab-label-container-editing');