Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
const WINDOW_RESIZING_CLASS = 'is-window-resizing';
const RESIZE_SETTLE_DELAY_MS = 140;
export function installWindowResizeStability(): () => void {
let settleTimer: number | undefined;
function handleResize() {
document.documentElement.classList.add(WINDOW_RESIZING_CLASS);
if (settleTimer !== undefined) window.clearTimeout(settleTimer);
settleTimer = window.setTimeout(() => {
document.documentElement.classList.remove(WINDOW_RESIZING_CLASS);
settleTimer = undefined;
}, RESIZE_SETTLE_DELAY_MS);
}
window.addEventListener('resize', handleResize, { passive: true });
return () => {
window.removeEventListener('resize', handleResize);
if (settleTimer !== undefined) window.clearTimeout(settleTimer);
document.documentElement.classList.remove(WINDOW_RESIZING_CLASS);
};
}