Hello,
In anki 2.1.49 I use the parameter min-height: -webkit-fill-available; to place the footer (tags and fonts). After upgrading to 2.1.54, this statement is not working.
Is this the expected result of this current version, or is there a problem?
Yes, that would be possible, but I am avoiding using this solution because besides “tags” I have “fonts”, and when I have these two fields active there would be an overlap (with a little js I could adjust it).
But my biggest question would be why min-height: -webkit-fill-available; is not working.
A more or less random guess would be that Qt has moved away from webkit with Qt6? Besides, you could put that style in a footer tag, and put in there boths your tags and fonts.
I had also forgotten the other problem that solutions like position: fixed; bottom: 0; can bring, when the text is too long it collides with the footer, as below:
But I found a solution to replace min-height: -webkit-fill-available; and update my model, it is min-height: calc(calc(var(--vh, 1vh) * 100) - 40px);, now it works identically in Qt6 as in Qt5 and there is no overlap problem:
Ah yes my bad, I think the correct position is absolute, not fixed (but even that sometimes gives strange results). After a bit of research, the most modern (ie. that does what you expect it to do, and doesn’t require “complex” calculations) is to use a flexbox:
This is exactly the method I use, except that instead of min-height: 100vh; I used min-height: -webkit-fill-available;. I did this because using 100vh (or other values) would never make the page “correct” by creating a scrollbar (just perfectionism on my part):
You mean min-width: 100%;?
Anyway, I got the effect I wanted using the flexbox method (described above) plus min-height: calc(calc(calc(var(--vh, 1vh) * 100) - 40px);.