mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
- Use getOuterHeight helper for accurate element measurements including margins - Simplify gap calculation for thought and streaming indicators - Add top fade gradient to chat area for better visual polish - Queue AI file deletions to prevent blocking conversation deletion - Only trigger modal close callback when no conversation is active
5 lines
No EOL
282 B
TypeScript
5 lines
No EOL
282 B
TypeScript
export function getOuterHeight(element: HTMLElement): number {
|
|
const marginTop = parseFloat(getComputedStyle(element).marginTop) || 0;
|
|
const marginBottom = parseFloat(getComputedStyle(element).marginBottom) || 0;
|
|
return element.offsetHeight + marginTop + marginBottom;
|
|
} |