diff --git a/css/rt-ai-html.css b/css/rt-ai-html.css
index 9267d3b..c97cc89 100644
--- a/css/rt-ai-html.css
+++ b/css/rt-ai-html.css
@@ -351,11 +351,8 @@ dialog {
text-overflow: ellipsis;
}
-img[src=""] {
- display: none;
-}
-
-.qr-code:empty {
+.qr-code:has(img[src=""]),
+.qr-code:has(img:not([src])) {
display: none;
}