dont show broken image for deleted flag, fallback to ? flag. should they just be completely be deleted from db? because they can be added back later, etc. hmmm...

indiachan-spamvector
Thomas Lynch 3 years ago
parent 042445d28c
commit ad7da047da
  1. 16
      gulp/res/css/style.css
  2. 2
      views/mixins/post.pug

@ -1529,7 +1529,7 @@ row.wrap.sb .col {
}
.flag {
.flag, .customflag::before {
display: inline-block;
width: 16px;
height: 11px;
@ -1540,6 +1540,20 @@ row.wrap.sb .col {
-ms-interpolation-mode: nearest-neighbor;
}
.customflag {
display: inline-block;
width: 16px;
height: 11px;
image-rendering: crisp-edges;
image-rendering: pixelated;
image-rendering: -webkit-optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
}
.customflag:before {
content: ' ';
background-position:-48px -165px;
}
.flag.flag-xx {
background-position:-48px -165px;
}

@ -33,7 +33,7 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false, overboar
|
if post.country && post.country.code
if post.country.custom === true
img.flag(src=`/flag/${post.board}/${post.country.src}` title=post.country.name alt=post.country.name)
img.customflag(src=`/flag/${post.board}/${post.country.src}` title=post.country.name alt=' ')
|
else
span(class=`flag flag-${post.country.code.toLowerCase()}` title=post.country.name alt=post.country.name)

Loading…
Cancel
Save