iachat/app/javascript/dashboard
Sivin Varghese 137c6f8a75
fix: Context menu and its submenu boundary overflow (#10729)
# Pull Request Template

## Description

This PR adds smart positioning to prevent context menu and submenu from
overflowing screen boundaries. The context menu and its submenu now
dynamically adjust their position when there isn't enough space.


Fixes
https://linear.app/chatwoot/issue/CW-3936/assign-to-agent-ui-element-is-drawn-off-canvas
https://github.com/chatwoot/chatwoot/issues/10727

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?
**Loom video**

**Before**

https://www.loom.com/share/6c267dde103c4f2281ed5b4d006a43b1?sid=047966f5-d6d3-4de6-ade8-270141e6e215

**After**

https://www.loom.com/share/5599c6061bb74c3ea527dd06960d3189?sid=ffb01149-bb7a-449e-b0ec-02cc191f472b


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-01-22 17:56:43 +05:30
..
api feat: Add assistant filter support to documents page (#10697) 2025-01-15 21:41:07 -08:00
assets chore(v4): Update colors (#10700) 2025-01-16 15:27:23 +05:30
components fix: Context menu and its submenu boundary overflow (#10729) 2025-01-22 17:56:43 +05:30
components-next feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
composables fix: sentry issues (#10695) 2025-01-16 15:49:48 +05:30
constants feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
helper feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
i18n feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
routes fix: Vite dev build fails due to sass (#10716) 2025-01-20 14:34:33 +05:30
store chore: Help center improvements (#10712) 2025-01-21 13:50:01 +05:30
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00