Skip to content

Commit

Permalink
Merge pull request #3882 from nextcloud/bugfix/noid/support-icon-clas…
Browse files Browse the repository at this point in the history
…s-for-smart-picker

feat(NcRichText): Support icon class for smart picker integrations
  • Loading branch information
nickvergessen committed Mar 14, 2023
2 parents 62aa36c + aa9f24f commit e5ff79a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="result">
<img class="result--image"
<div v-if="entry.icon"
:class="{ [entry.icon]: true, rounded: entry.rounded }"
class="result--icon-class" />
<img v-else
class="result--image"
:class="{ rounded: entry.rounded }"
:src="entry.thumbnailUrl">
<div class="result--content">
Expand Down Expand Up @@ -49,6 +53,7 @@ export default {
height: 44px;
overflow: hidden;
&--icon-class,
&--image {
width: 40px;
min-width: 40px;
Expand Down

0 comments on commit e5ff79a

Please sign in to comment.