Fix I/O not showing in Qt5

Images still gets stretched, because Qt5 doesn't support the aspect-ratio
CSS property, but it's better than nothing.

https://forums.ankiweb.net/t/possible-occulusion-issue-on-ver-23-10-and-the-solution/36894
This commit is contained in:
Damien Elmes 2023-11-13 15:31:50 +10:00
parent 0b164719a0
commit c478689e5a
2 changed files with 8 additions and 2 deletions

View file

@ -177,8 +177,10 @@ class ThemeManager:
classes.append("reduce-motion")
if not aqt.mw.pm.minimalist_mode():
classes.append("fancy")
if qtmajor == 5 and qtminor < 15:
classes.append("no-blur")
if qtmajor == 5:
classes.append("qt5")
if qtminor < 15:
classes.append("no-blur")
return " ".join(classes)
def body_classes_for_card_ord(

View file

@ -129,3 +129,7 @@ button {
.nightMode img.drawing {
filter: unquote("invert(1) hue-rotate(180deg)");
}
.qt5 #image-occlusion-container img {
position: relative;
}