e5110a13f8
- millify.ts: use named import { millify as millifyPlugin } instead of
default import to fix Rolldown CJS interop bug where zc.default gets
set to the whole module object instead of the function (mode=1 forces
default=n instead of default=n.default, breaking MembersDrawer)
- useCallEmbed.ts: use getBoundingClientRect() for accurate fixed
positioning; add useEffect to trigger syncCallEmbedPlacement on mount
so embed is positioned before the first resize event
- CallEmbedProvider.tsx: fix [pipMode, callVisible] effect to NOT clear
top/left/width/height when callVisible changes (previously cleared
position set by syncCallEmbedPlacement every time joined changed);
only clear pip-specific styles when actually exiting pip; add debug
console logging for positioning state
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
import { millify as millifyPlugin } from 'millify';
|
|
import { MillifyOptions } from 'millify/dist/options';
|
|
|
|
export const millify = (count: number, options?: Partial<MillifyOptions>): string =>
|
|
millifyPlugin(count, {
|
|
precision: 1,
|
|
locales: [],
|
|
...options,
|
|
});
|