File tree 1 file changed +13
-5
lines changed
src/components/feed-display
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 8
8
:href =" item.url"
9
9
:title =" t('news', 'Open website')"
10
10
@click =" markRead(item); $event.stopPropagation();" >
11
- <EarthIcon />
11
+ <span
12
+ v-if =" getFeed(item.feedId).faviconLink"
13
+ class =" favicon"
14
+ :style =" { 'backgroundImage': 'url(' + getFeed(item.feedId).faviconLink + ')' }"
15
+ />
16
+ <RssIcon v-else />
12
17
</a >
13
- <RssIcon v-if =" !getFeed(item.feedId).faviconLink" />
14
- <span v-if =" getFeed(item.feedId).faviconLink" style =" width : 24px ; background-size : contain ;" :style =" { 'backgroundImage': 'url(' + getFeed(item.feedId).faviconLink + ')' }" />
15
18
</div >
16
19
<div class =" title-container" :class =" { 'unread': item.unread }" >
17
20
<span style =" white-space : nowrap " :dir =" item.rtl && 'rtl'" >
45
48
import Vue from ' vue'
46
49
import { mapState } from ' vuex'
47
50
48
- import EarthIcon from ' vue-material-design-icons/Earth.vue'
49
51
import StarIcon from ' vue-material-design-icons/Star.vue'
50
52
import EyeIcon from ' vue-material-design-icons/Eye.vue'
51
53
import EyeCheckIcon from ' vue-material-design-icons/EyeCheck.vue'
@@ -65,7 +67,6 @@ import { ACTIONS, MUTATIONS } from '../../store'
65
67
export default Vue .extend ({
66
68
name: ' FeedItemRow' ,
67
69
components: {
68
- EarthIcon ,
69
70
StarIcon ,
70
71
EyeIcon ,
71
72
EyeCheckIcon ,
@@ -171,6 +172,13 @@ export default Vue.extend({
171
172
align-self : start ;
172
173
}
173
174
175
+ .favicon {
176
+ height : 24px ;
177
+ width : 24px ;
178
+ display : inline-block ;
179
+ background-size : contain ;
180
+ }
181
+
174
182
.feed-item-row .title-container {
175
183
color : var (--color-text-lighter );
176
184
You can’t perform that action at this time.
0 commit comments