(fix): recharts warnings
All checks were successful
/ deploy (push) Successful in 14m44s

(fix): fullscreen popovers not showing
(qol): update todo
This commit is contained in:
Alois 2026-05-09 15:39:19 +02:00
commit bd1622d63a
9 changed files with 87 additions and 68 deletions

View file

@ -105,14 +105,17 @@ export default function Screen() {
messagesRef.current = messages;
}, [messages]);
const getItemKey = React.useCallback((index: number) => {
if (shouldShowConversationStart && index === 0) {
return "conversation-start";
}
const getItemKey = React.useCallback(
(index: number) => {
if (shouldShowConversationStart && index === 0) {
return "conversation-start";
}
const messageIndex = shouldShowConversationStart ? index - 1 : index;
return messagesRef.current[messageIndex]?.send_time ?? index;
}, [shouldShowConversationStart]);
const messageIndex = shouldShowConversationStart ? index - 1 : index;
return messagesRef.current[messageIndex]?.send_time ?? index;
},
[shouldShowConversationStart],
);
const setMeasurementRef = React.useCallback(
(sendTime: number, element: HTMLDivElement | null) => {