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

Feature request: Option to fit ftb input box to width of clozed answer #151

Closed
LuneAria opened this issue Jul 9, 2024 · 1 comment
Closed

Comments

@LuneAria
Copy link

LuneAria commented Jul 9, 2024

Basically what it says. I was hoping for instance if the clozed word was something short such as "cat" the input box would automatically shrink in width so only about 3 letters would be contained. A longer word like "banana" would have an input box of greater width. That way cards would look a lot neater as the text wouldn't jump everywhere to fill the blank space when an answer is inputted.

Thank you for your work!

ssricardo added a commit that referenced this issue Mar 8, 2025
* Addressed:
  - issue #70
  - issue #151
  - issue #157
@ssricardo
Copy link
Owner

This was addressed in the newly released version.
But a little differently.

In the early versions I tried that (to match the size with the number of characters), but it really wasn't working well.
Especially, if we consider distinct alphabets (non Latin chars).

What was added now is supporting 4 distinct sizes, but you can configure them as you wish.
Depending on the number of chars, a CSS rule is added. Then you can edit those CSS styles in the Note template editor.

Check and try it out here:
https://github.com/ssricardo/anki-plugins/wiki/Fill-the-blank---Styles

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