One thing that bothers me is this empty area between my cards and the bottom bar. I can’t find any options that use it. It’s always empty.
I created a test card with a specified height. If I add even one pixel, a scroll bar appears. And this empty area is still not being used. The scrollbar “ends” right before it.
On the screenshot (attached) you can see that the background of the bottom bar with answer buttons is slightly grey, but the area I’d like to reclaim is black:
In cards with just text, that same area isn’t empty, so I’m wondering what all is different in that card for you.
For someone to take a look, we’d need at least some of the following things – as text, each in their own preformatted-text-/code-block. But exactly what we need depends on where you’ve made the modifications you’re asking about, so you’ll know better than us.
It seems to be working fine for me, so I don’t think it’s a bug in AnkiMobile. I don’t think it’s your image – but you should try a different image, just in case.
I wonder if it is device/screen-size specific? That might suggest that there’s some CSS that would make it work fine on your screen too [moving this thread to Card Design].
@Danika_Dakika, hmmm, our screen ratios are different, looking at the screenshots. Maybe if my wasn’t as tall, the area would disappear, too?
@Anon_0000, the background image is much larger than what is shown, the mobile app is showing maybe ¼ of it.
sorata, if I add min-height: 100%, nothing happens. But with min-height: 100vh; margin: 0, a scrollbar appears on each card (only in AnkiMobile, on iOS). Which is quite confusing because body should be able to take the whole (100%) view height available to it without scrollbars. The extra area is still there at the bottom.
Here’s a try at adding a lot of lines to the card. It looks as expected in the Desktop editor, but has additional margin (or padding) on AnkiMobile within the specified background, and also the empty area, which isn’t black now, but beige (because it’s daytime). Also please not where the mobile scroll bar ends – shouldn’t end right before the answer buttons instead?
I’m guessing it’s the same beige that I specified in my CSS as .card { background-color: beige; }? OTOH, I don’t have a night time variant.
@Danika_Dakika doesn’t this difference between AnkiMobile and Anki Desktop a slight clue that this could be an AnkiMobile bug? Esp. considering our different screen aspect ratios.
Another clue. When I create a rectangular <div> with a specified height, a scrollbar appears as soon as the <div> were to cross into this white area at the bottom, even by 1 px. Similar with regular text.
Sorry, I didn’t read your previous message properly. The webview is the height of the entire screen, so that the top and bottom bars’ translucency is affected as you scroll, like in Safari.
The white bar at the bottom is caused by webview insets, which are there so that the page can be scrolled up when it’s <= the screen height - otherwise, content that appears under the bottom bars you might not be able to scroll to. If you set the background color to red instead of using an image for example, you should be able to see iOS coloring the insets that same color. It seems it handles images differently though, and I don’t know if CSS can be used to work around this or not I’m afraid.