mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-24 09:57:27 +00:00
Fix invalid mask-icon
when a custom instance icon is configured (#30734)
This commit is contained in:
parent
5addffb604
commit
43bbdea421
|
@ -256,6 +256,10 @@ module ApplicationHelper
|
||||||
instance_presenter.app_icon&.file&.url(size)
|
instance_presenter.app_icon&.file&.url(size)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def use_mask_icon?
|
||||||
|
instance_presenter.app_icon.blank?
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def storage_host_var
|
def storage_host_var
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
- SiteUpload::APPLE_ICON_SIZES.each do |size|
|
- SiteUpload::APPLE_ICON_SIZES.each do |size|
|
||||||
%link{ rel: 'apple-touch-icon', sizes: "#{size}x#{size}", href: app_icon_path(size.to_i) || frontend_asset_path("icons/apple-touch-icon-#{size}x#{size}.png") }/
|
%link{ rel: 'apple-touch-icon', sizes: "#{size}x#{size}", href: app_icon_path(size.to_i) || frontend_asset_path("icons/apple-touch-icon-#{size}x#{size}.png") }/
|
||||||
|
|
||||||
|
- if use_mask_icon?
|
||||||
%link{ rel: 'mask-icon', href: frontend_asset_path('images/logo-symbol-icon.svg'), color: '#6364FF' }/
|
%link{ rel: 'mask-icon', href: frontend_asset_path('images/logo-symbol-icon.svg'), color: '#6364FF' }/
|
||||||
%link{ rel: 'manifest', href: manifest_path(format: :json) }/
|
%link{ rel: 'manifest', href: manifest_path(format: :json) }/
|
||||||
= theme_color_tags current_theme
|
= theme_color_tags current_theme
|
||||||
|
|
Loading…
Reference in a new issue