🎨 Improved cross-theme widget styling and options
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<span class="date">{{ article.published | date }}</span>
|
||||
</div>
|
||||
<p class="description">{{ article.description }}</p>
|
||||
<img class="thumbnail" v-if="article.image" :src="article.image" alt="Thumbnail" />
|
||||
<img class="thumbnail" v-if="article.image && !hideImages" :src="article.image" alt="Image" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -46,6 +46,9 @@ export default {
|
||||
keywords() {
|
||||
return this.options.keywords ? `&keywords=${this.options.keywords}` : '';
|
||||
},
|
||||
hideImages() {
|
||||
return this.options.hideImages;
|
||||
},
|
||||
endpoint() {
|
||||
return `${widgetApiEndpoints.news}?apiKey=${this.apiKey}`
|
||||
+ `${this.country}${this.category}${this.lang}${this.count}`;
|
||||
|
||||
Reference in New Issue
Block a user