mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
0b164719a0
commit
c478689e5a
2 changed files with 8 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -129,3 +129,7 @@ button {
|
|||
.nightMode img.drawing {
|
||||
filter: unquote("invert(1) hue-rotate(180deg)");
|
||||
}
|
||||
|
||||
.qt5 #image-occlusion-container img {
|
||||
position: relative;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue