TowelSniffer / Anki-Chess-2.0

An interactive chess template for anki.
GNU General Public License v3.0
104 stars 11 forks source link

Android Problem after update #6

Closed problemadder closed 3 years ago

problemadder commented 3 years ago

Hi. Great template! thanks a lot. The Update is great for usage on mac. On Android there is a little problem. Do you have any idea how to fix this? (screen appears after first move - the starting position looks fine) Screenshot_20210309-205225 Would you mind uploading the old files so a downgrade is possible for me. Thanks again

TowelSniffer commented 3 years ago

Hi, is it the board being cut off that you wish to fix?

"screen appears after first move - the starting position looks fine"

I'm not sure what you mean here sorry

problemadder commented 3 years ago

sry. my explanation was too short. the board being cut off on the right side is the "problem".

TowelSniffer commented 3 years ago

ok in the styling there is the css

.mobile iframe{

height:96vh;
width:96vw;
}

you could try changing 96 to 100 and it might not cutoff.

in the meantime, I will look at the code and see if there is a way to automatically fit the pgn viewer board as I do with the frontside. This should be fixable and It's probably better than using an older release

problemadder commented 3 years ago

this works. I changed it to: .mobile iframe{

height:94vh; width:100vw; }

keep up the good work

TowelSniffer commented 3 years ago

sweet, this seems to be a weird issue with ankidroid tbh, because on my device, setting it to 96vw takes up the whole width. glad this works though

problemadder commented 3 years ago

I made it "max-width:105vw;" now, that is even better. Screenshot_20210309-211948