style: update wiki data badge layout
- Wrap badge content in a div for better layout. - Maintain existing functionality and styling while improving structure. This change enhances the HTML structure of the wiki data badge by encapsulating the link in a div element, which aids in layout management without altering the way the component functions or displays.
This commit is contained in:
parent
025ee0d06a
commit
ddc10e9679
@ -1,4 +1,5 @@
|
||||
<% if city.wiki_data_id.present? %>
|
||||
<div class="badge badge-lg badge-ghost">
|
||||
<%= link_to "https://www.wikidata.org/wiki/#{city.wiki_data_id}",
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer",
|
||||
@ -9,4 +10,5 @@
|
||||
</svg>
|
||||
<%= t("text.wiki_data") %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
Loading…
Reference in New Issue
Block a user