Fix web images not showing up for some situations

This commit is contained in:
GnoxNahte 2024-09-20 11:17:14 +08:00
parent ae72048f93
commit 87f93d0e02

View file

@ -20,15 +20,15 @@ img[src^="http:"]:has(+ .auto-embed-container:not(.auto-embed-hide-display)),
}
/* When the cursor is on the line with the embed */
.auto-embed-container + img[src^="https:"],
.auto-embed-container + img[src^="http:"]
.auto-embed-container:not(.auto-embed-hide-display) + img[src^="https:"],
.auto-embed-container:not(.auto-embed-hide-display) + img[src^="http:"]
{
display: none !important;
}
/* When it's in a list */
.HyperMD-list-line:has(+ .auto-embed-container) img[src^="https:"],
.HyperMD-list-line:has(+ .auto-embed-container) img[src^="http:"]
.HyperMD-list-line:has(+ .auto-embed-container:not(.auto-embed-hide-display)) img[src^="https:"],
.HyperMD-list-line:has(+ .auto-embed-container:not(.auto-embed-hide-display)) img[src^="http:"]
{
display: none !important;
}