Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix misc layout issues #2282

Merged
merged 36 commits into from
Aug 17, 2022

Conversation

shanberg
Copy link
Collaborator

@shanberg shanberg commented Aug 16, 2022

Major

  • fix: extra daily notes appearing
  • feat: new daily notes scrolling behavior
  • fix: autocomplete menu not appearing

Minor

  • rfct: cleaner toolbar button props
  • perf: Autocomplete menus only mounted when editing that block
  • improvement: autocomplete menus animate in
  • fix: console error related to right sidebar
  • improvement: Layout backgrounds transition evenly when changing theme

@vercel
Copy link

vercel bot commented Aug 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
athens ✅ Ready (Inspect) Visit Preview Aug 17, 2022 at 2:28PM (UTC)

@shanberg shanberg changed the title Fix-misc-new-layout-issues fix misc layout issues Aug 16, 2022
Copy link
Collaborator

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slash command seems to get into a weird position sometimes:

This was ok
image

But calling it on the second daily note shows it in a different place:
image

After calling and dismissing it on the first daily note, hovering around the note shows the menu from the top left corner
image

const { children, rightSidebarWidth, isOpen } = props;

console.log(rightSidebarWidth)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove debug code

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

} from '@chakra-ui/react';
import getCaretCoordinates from '@/../textarea'
import getCaretCoordinates from 'textarea-caret';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course there's a npm lib for this.

It seems to be doing what our code was, but without us having to maintain it. Awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants