Skip to content

feat: auto position menus#45

Draft
developit wants to merge 1 commit intomainfrom
codex/implement-css-based-menu-positioning-ago7pe
Draft

feat: auto position menus#45
developit wants to merge 1 commit intomainfrom
codex/implement-css-based-menu-positioning-ago7pe

Conversation

@developit
Copy link
Copy Markdown
Owner

Summary

  • delegate positioning to show/toggle listeners and drop unused anchor metrics
  • replace flip flags with space-separated data-flip and derive offsets from anchor size in CSS
  • clear default dialog margins so menus anchor correctly
  • temporarily remove popover transforms before measuring so layout nudges don't flip menus back and forth
  • clamp context menus to viewport using direct left/top coordinates

Testing

  • pnpm lint (fails: TypeScript errors in demo and components)

https://chatgpt.com/codex/tasks/task_e_68c0e8bb75588321a1bb93503ba048f0

@github-actions
Copy link
Copy Markdown
Contributor

Size Change: +482 B (+4.59%) 🔍

Total Size: 11 kB

Filename Size Change
dist/index.css 5.7 kB +109 B (+1.95%)
dist/index.js 5.28 kB +373 B (+7.6%) 🔍

compressed-size-action

@netlify
Copy link
Copy Markdown

netlify bot commented Sep 11, 2025

Deploy Preview for pui-demo ready!

Name Link
🔨 Latest commit 449c0cf
🔍 Latest deploy log https://app.netlify.com/projects/pui-demo/deploys/68c2c7f90c0f1c0008c23fdd
😎 Deploy Preview https://deploy-preview-45--pui-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant