MCPcopy Create free account
hub / github.com/CommE2E/comm / useComposedMessageMaxWidth

Function useComposedMessageMaxWidth

native/chat/composed-message-width.js:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13// Keep sorta synced with styles.alignment/styles.messageBox in ComposedMessage
14function useComposedMessageMaxWidth(): number {
15 const messageListScreenWidth = useMessageListScreenWidth();
16
17 return (messageListScreenWidth - 24 - avatarOffset) * 0.8;
18}
19
20export { useMessageListScreenWidth, useComposedMessageMaxWidth };

Callers 3

ChatItemHeightMeasurerFunction · 0.90
DummyTextNodeFunction · 0.90

Calls 1

Tested by

no test coverage detected