mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-23 05:35:27 +00:00
pickBestQuadrant flattened each side's available space to -1 when the popover did not fully fit, then sorted those values for the fallback. Once every side was -1 the sort was meaningless and the fallback always returned right, even for a node hugging the right edge of the container where the left side has ~45x more room. The clamped popover then slides over the node it is annotating. Keep the raw space measurements alongside the required size so the preference pass still checks fit, while the fallback can genuinely rank sides by available space. Also export the helper and cover the preference order, the exact-fit boundary, and the fallback ranking with unit tests. |
||
|---|---|---|
| .. | ||
| agent-framework-python | ||
| ai-sdk | ||
| cartesia-sdk-python | ||
| docs-test | ||
| hooks | ||
| lib | ||
| memory-graph | ||
| openai-sdk-python | ||
| pipecat-sdk-python | ||
| tools | ||
| ui | ||
| validation | ||