Refactor: Modularize memo.py to 3-layer architecture, Fix tag extraction regex, and Enhance infinite scroll for large screens

This commit is contained in:
leeyj
2026-04-20 11:04:00 +09:00
parent 6fca65eef1
commit ac58e14c8c
10 changed files with 476 additions and 372 deletions
+12
View File
@@ -292,6 +292,18 @@ export const UI = {
DOM.scrollSentinel.style.visibility = hasMore ? 'visible' : 'hidden';
DOM.scrollSentinel.innerText = hasMore ? I18nManager.t('msg_loading') : I18nManager.t('msg_last_memo');
}
},
/**
* 💡 무한 스크롤 보조: 센티넬이 현재 화면에 보이는지 확인
*/
isSentinelVisible() {
if (!DOM.scrollSentinel) return false;
const rect = DOM.scrollSentinel.getBoundingClientRect();
return (
rect.top >= 0 &&
rect.top <= (window.innerHeight || document.documentElement.clientHeight)
);
}
};