AnKing-VIP / AnKing-Note-Types

https://www.ankingmed.com
GNU Affero General Public License v3.0
41 stars 20 forks source link

Nitpick: properly center text/image on IO-one-by-one card front #142

Open Atekken opened 1 year ago

Atekken commented 1 year ago

Which Note Type (and version) is this about?

IO-one by one version 1.1

Checklist

Please replace the space inside the brackets with an x if the following items apply:

What Anki version are you using?

*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below

2.0.92 (AnkiMobile)

What Operating system are you using? (i.e. MacOS, Windows, Linux)

Please include OS version as well if possible

iOS 16.5

Problem case

Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help."

This is a tiny nitpick but it would be cool if it was solved. Currently, the iOS version of Anki does not support autoflip, requiring the user to manually flip the card by tapping. This is indicated with text "This is an Image Occlusion one by one card: Please flip to the backside." and an image of the AnKing logo.

On my iphone 13 mini (iOS 16.5) this text and image is not properly centered. I'm not much of a programmer myself so I asked chatGPT if it could fix the centering for me. Unfortunately it was not successful so I'm now asking a human to give it a shot.

Solution

Concisely describe the solution you would like Properly center the text and image on the card front

Concisely describe alternatives you've considered (if any) Do nothing

More information

Additional context: Add any other context or screenshots about the feature request here. I attached a before and after image of how the card currently looks and how I would like it to look. This was achieved by editing the screenshot in GIMP, not by updating the code. image

AnKingMed commented 1 year ago

@abdnh if you want to look into this you can

abdnh commented 1 year ago

I pushed a quick fix but I'm not sure if it fixes the issue on iOS (only tested on computer and Android and it doesn't happen there)

AnKingMed commented 1 year ago

Didn't seem to fix it for me. I think it may be because the "?" Is acting like a block. It's centered in between the left side and the "?"

abdnh commented 1 year ago

Not really sure why it'll behave like that on iOS. Might be better to assign this to someone able to test on iOS.

AnKingMed commented 1 year ago

sounds good! I'll try and look into it when I have some time