fix(core): restore mime icon size and colour in search results

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
pull/62605/head
Peter Ringelmann 3 weeks ago
parent bf39ac853b
commit d17da46c5c
No known key found for this signature in database
  1. 9
      core/src/components/UnifiedSearch/SearchResult.vue

@ -256,6 +256,15 @@ export default {
object-fit: contain;
// Dark monochrome icons invert to light in dark themes.
filter: var(--background-invert-if-dark);
// Mime icons carry their own colours (a red PDF, a green spreadsheet), so the
// dark-theme invert would recolour them: red comes out cyan. Sized to match the
// 32px these icons had while they were painted as a background-image.
&[src*='/filetypes/'] {
width: 32px;
height: 32px;
filter: none;
}
}
}

Loading…
Cancel
Save