Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(LinkPicker): Show icons
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jan 30, 2023
commit 4a490524c7397ab39d2de7cbf67e26396a2fd443
26 changes: 24 additions & 2 deletions src/components/Suggestion/LinkPicker/LinkPickerList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<template>
<SuggestionListWrapper ref="suggestionList" :command="command" :items="items" @select="(item) => $emit('select', item)">
<SuggestionListWrapper ref="suggestionList"
:command="command"
:items="items"
@select="(item) => $emit('select', item)">
<template #default="{ item }">
{{ item.label }}
<div class="link-picker__item">
<img :src="item.icon">
<div>{{ item.label }}</div>
</div>
</template>
<template #empty>
{{ t('text', 'No command found') }}
Expand Down Expand Up @@ -54,3 +60,19 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.link-picker__item {
display: flex;

& > div {
padding: 4px;
padding-left: 12px;
}

img {
width: 32px;
height: 32px;
filter: var(--background-invert-if-dark);
}
}
</style>