fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
178 stars 24 forks source link

PDF reader doesn't fill the space in the add-dialog #368

Open mayank-shri opened 1 year ago

mayank-shri commented 1 year ago

Describe the bug While reviewing cards, when you click on "Open in add-dialog" button, IF IT IS EARLIER SET TO Show Both, Auto-hide Fields , then the add dialog window opens but is restricted to very small space.

To Reproduce Steps to reproduce the behavior:

  1. Open add dialog, close with option- Show Both, Auto-hide Fields
  2. Review the relevant card, click on Open in add-dialog
  3. Error: doesn't fill the dialog

Expected behavior Addon should fill the dialog completely instead of: image

Screenshots https://github.com/fonol/anki-search-inside-add-card/assets/31794489/813ac908-7116-44aa-8d57-65986c3a6cc5

Environment (please complete the following information):

Oomani commented 1 year ago

I am also having this problem.

image

This is somewhat fixed by changing the layout on the bottom-left to "Both", but the searchpane on the bottom is incorrectly pinned to the bottom of this add-on's window.

image

I also notice this add-on specifically adds a grey bar when adding a note located right below the "Type" and "Deck" drop down menus which covers up part of its own UI.

image

This in and of itself would be fine, however:

(1) the add-on does not scale properly on 1440p resolution. Occurring inconsistently, I can sometimes dramatically increase the UI zoom to remove the scrolling bar on the right or by changing to the "Show Both, auto hide fields" layout, changing the zoom, changing back to "Both", and changing zoom again.

image

(2) when clicking on the top toolbar for the add-on (see [a pre-click]), it wants to first move the right scroll bar all the way down, so the aforementioned gray bar blocks the add-on's own top row of buttons (see [b after click]). I can then only see the bottom rows of pixels of the top row buttons. Only when the right scroll bar is all the way down does any click generate the drop-down menus (see [c after click dropdown]).

[a pre-click] image

[b after click] image

[c after click dropdown] image

I can't find any setting in the config for this grey bar. It only appears when enabling/disabling this add-on and is grey even when the Anki them is set to Day. Another issue seems to be the way the layout is coded for the bottom search pane being pinned to the bottom of that window instead of adaptively shifting with the zoom scale.

Any suggestions? Is there something else conflicting in the config? Or is there a known add-on conflict causing these interactions?

Abbas-Jawad commented 8 months ago

does this message appear to you too?

image