File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -3039,6 +3039,19 @@ fieldset input[type="radio"] {
3039
3039
font-size : 0.2in ;
3040
3040
padding : 0 0.1in ;
3041
3041
}
3042
+ img .error {
3043
+ position : relative;
3044
+ }
3045
+ img .error ::after {
3046
+ background : var (--secondary-bg ) url ("/icons/sad.svg" );
3047
+ background-size : contain;
3048
+ content : "" ;
3049
+ width : 100% ;
3050
+ height : 100% ;
3051
+ position : absolute;
3052
+ top : 0 ;
3053
+ left : 0 ;
3054
+ }
3042
3055
.gifBox {
3043
3056
img {
3044
3057
max-width : 196px ;
Original file line number Diff line number Diff line change @@ -599,6 +599,9 @@ export function createImg(
599
599
const settings =
600
600
localStorage . getItem ( "gifSetting" ) || ( "hover" as "hover" ) || "always" || "never" ;
601
601
const img = document . createElement ( "img" ) ;
602
+ img . addEventListener ( "error" , ( ) => {
603
+ img . classList . add ( "error" ) ;
604
+ } ) ;
602
605
elm ||= img ;
603
606
if ( src && isAnimated ( src ) ) {
604
607
img . crossOrigin = "anonymous" ;
You can’t perform that action at this time.
0 commit comments