Different inputbox sizes basedon answer length#175
Open
tekboart wants to merge 4 commits intossricardo:masterfrom
Open
Different inputbox sizes basedon answer length#175tekboart wants to merge 4 commits intossricardo:masterfrom
tekboart wants to merge 4 commits intossricardo:masterfrom
Conversation
(1) [fix] last ver only returned 'ftb-md' (e.g., no ftb-sm, ftb-lg, etc.) (2) added a 'ftb-xl' for text lengh greater than 30
(1) except for 'ftb-md' all other classes were missing (2) added 'ftb-xl' as well (3) the width of each of the added classes are based on 8 (1 letter is almost 8 pixel)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The current version only uses
ftb-mdwith width 150px.The current, fixed approach is useful to remove recognition, as all clozes will have the same size regardless of their text-length. However, it's sometimes awkward and waste of space if we use 150px for a cloze that has only 5 letters.
In my humble opinion, having a few more width options would remove recognition but at the same is proportional to the cloze text-length.
Solution
The solution adds 5 threshold by which the width of the input is set.
Thank you so much for you useful plugin. I have been using your plugin for almost 5 years (since introduced) and it has been a boon to my code learning in Anki. 😊👏