Add Wikipedia icon, support for filled SVGs

This commit is contained in:
2026-02-24 13:25:17 +04:00
parent 4fdf2e2fb6
commit e980431c17
4 changed files with 13 additions and 4 deletions

View File

@@ -74,7 +74,11 @@ export default class IconComponent extends Component {
<template>
{{#if this.svg}}
<span class="icon" style={{this.style}} title={{this.title}}>
<span
class="icon {{if @filled 'icon-filled'}}"
style={{this.style}}
title={{this.title}}
>
{{htmlSafe this.svg}}
</span>
{{/if}}

View File

@@ -248,14 +248,14 @@ export default class PlaceDetails extends Component {
{{#if this.wikipedia}}
<p class="content-with-icon">
<Icon @name="wikipedia" @title="Wikipedia" />
<Icon @name="wikipedia" @title="Wikipedia" @filled={{true}} />
<span>
<a
href="https://wikipedia.org/wiki/{{this.wikipedia}}"
target="_blank"
rel="noopener noreferrer"
>
Wikipedia Article
Wikipedia
</a>
</span>
</p>