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

[IDEA] Auto place model of "More" to avoid border #7929

Open
linonetwo opened this issue Jan 13, 2024 · 2 comments
Open

[IDEA] Auto place model of "More" to avoid border #7929

linonetwo opened this issue Jan 13, 2024 · 2 comments

Comments

@linonetwo
Copy link
Contributor

linonetwo commented Jan 13, 2024

Is your feature request related to a problem? Please describe.

Sometimes model of "More" page control button will be hidden by right window border

图片

And on mobile, I'm using a bottom docker bar to display page control buttons, then the model is hidden by bottom border.

图片

Describe the solution you'd like

Auto re-place the model to avoid collision with window borders. Use library like https://github.com/floating-ui/floating-ui (or copy it here)

Describe alternatives you've considered

Or allow control the direction of the pupup, by using a variable? So I can control it to pop in up direction.

Additional context

I'm placing the pagecontrol buttons on the bottom like this on mobile

title: $:/plugins/linonetwo/itonnote/UI/PageControlBelowPage
tags: $:/tags/AboveStory

<!-- Though visually it is on the bottom of the page, but we have to use AboveStory to make sure it is overlay on the story. -->
<$list filter="[[$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage]get[text]else[no]match[yes]]">
  <nav class="page-control-below-page">
    {{$:/core/ui/PageTemplate/pagecontrols}}
  </nav>
</$list>
@linonetwo
Copy link
Contributor Author

Already mentioned by @kookma many times ago https://groups.google.com/g/tiddlywiki/c/dFxN3eIrAzo/m/6h9rISmTDAAJ

@kookma
Copy link
Contributor

kookma commented Mar 31, 2024

I think @theSherwood did some investigations on improving popups and floating windows in TiddlyWiki.

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

No branches or pull requests

2 participants