fix(menu): Fix menu min-height and recalc max-height #71 #72

Merged
rsevs3 merged 2 commits from issue-71 into main 2025-10-14 03:59:40 +00:00
rsevs3 commented 2025-10-14 03:56:43 +00:00 (Migrated from github.com)

Reduced the min-height to correctly position menu when only a couple of items. Also got the wrapper container to recalc the max height so that the menu is correctly positioned when going from a large menu to a small menu

  • Override BlockNote's hardcoded 300px min-height with 120px for better UX
  • Add synchronous resize detection when transitioning from submenu back to main menu
  • Implement dual-strategy resize triggers (immediate + async fallback) to eliminate visual flicker
  • Add smooth CSS transitions for height changes during menu resizing

closes #71

Reduced the min-height to correctly position menu when only a couple of items. Also got the wrapper container to recalc the max height so that the menu is correctly positioned when going from a large menu to a small menu - Override BlockNote's hardcoded 300px min-height with 120px for better UX - Add synchronous resize detection when transitioning from submenu back to main menu - Implement dual-strategy resize triggers (immediate + async fallback) to eliminate visual flicker - Add smooth CSS transitions for height changes during menu resizing closes #71
github-actions[bot] commented 2025-10-14 03:58:03 +00:00 (Migrated from github.com)

Code Coverage Report

Code Coverage

Summary

  • Overall Coverage: 2.6%
  • Minimum Required: 0%
  • Status: PASSED

Report generated on 2025-10-14 03:58:03 UTC

Package Details

Package Coverage
django_blocknote 🟢 8.9%
django_blocknote.forms 🟢 0.0%
django_blocknote.image 🟢 0.0%
django_blocknote.models 🟢 0.0%
django_blocknote.templatetags 🟢 0.0%
django_blocknote.views 🟢 0.0%
# Code Coverage Report ![Code Coverage](https://img.shields.io/badge/coverage-2.6%25-red) ## Summary - **Overall Coverage**: 2.6% - **Minimum Required**: 0% - **Status**: ✅ PASSED *Report generated on 2025-10-14 03:58:03 UTC* ## Package Details | Package | Coverage | |---------|-----------| | django_blocknote | 🟢 8.9% | | django_blocknote.forms | 🟢 0.0% | | django_blocknote.image | 🟢 0.0% | | django_blocknote.models | 🟢 0.0% | | django_blocknote.templatetags | 🟢 0.0% | | django_blocknote.views | 🟢 0.0% |
Sign in to join this conversation.
No description provided.