Skip to content

feat: fix the position of file menu#176

Merged
k1LoW merged 1 commit intok1LoW:mainfrom
kyu08:menu-follow
Apr 15, 2026
Merged

feat: fix the position of file menu#176
k1LoW merged 1 commit intok1LoW:mainfrom
kyu08:menu-follow

Conversation

@kyu08
Copy link
Copy Markdown
Contributor

@kyu08 kyu08 commented Apr 15, 2026

Thanks for the maintaining such a wonderful tool!
I'm using mo from inside neovim and this helps me a lot!

WHAT

I fixed the position of file menu.
CleanShot 2026-04-16 at 00 03 44@2x

AsIs

CleanShot.2026-04-15.at.23.56.18.mp4

This PR

CleanShot.2026-04-15.at.23.56.35.mp4

WHY

Sometimes, I take a quick glance at ToC.

Currently, I should scroll to the top when I want to do it.

I believe this change improves UX in the above case.

Test plan

I tested this change as following:

  1. make build ARG=README.md (I don't know that ARG is needed. 🫥)
  2. ./mo README.md
  3. Open http://localhost:6275/ in my browser

{renderedContent}
</article>
<div className="shrink-0 flex flex-col gap-2 -mr-4 -mt-4">
<div className="shrink-0 flex flex-col gap-2 -mr-4 -mt-4 sticky -top-4">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

-top-4 is needed to place the file menu in the same position as before this PR.

@k1LoW k1LoW added the enhancement New feature or request label Apr 15, 2026
@k1LoW
Copy link
Copy Markdown
Owner

k1LoW commented Apr 15, 2026

@kyu08 Thank you for your contribution!!! GREAT!!

@k1LoW k1LoW merged commit 4c18c64 into k1LoW:main Apr 15, 2026
3 checks passed
@github-actions github-actions bot mentioned this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tagpr:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants