mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-15 20:08:12 +00:00
Change channel banner to be CSS background image
This is to allow for contents to be placed on the channel banner itself; something that is required for the links widget shown on Youtube.
This commit is contained in:
@@ -3906,7 +3906,6 @@ get "/fetch_link_favicon" do |env|
|
||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
proxy_file(favicon_response, env)
|
||||
end
|
||||
|
||||
rescue ex
|
||||
end
|
||||
end
|
||||
|
@@ -959,7 +959,7 @@ def get_about_info(ucid, locale)
|
||||
allowed_regions: allowed_regions,
|
||||
related_channels: related_channels,
|
||||
tabs: tabs,
|
||||
links: links
|
||||
links: links,
|
||||
})
|
||||
end
|
||||
|
||||
|
@@ -4,8 +4,9 @@
|
||||
<% end %>
|
||||
|
||||
<% if channel.banner %>
|
||||
<div class="h-box">
|
||||
<img style="width:100%" src="/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>">
|
||||
<div class="pure-g" id="channel-banner-container">
|
||||
<div class="pure-u-1" id="banner" style='background: url(/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>)'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="h-box">
|
||||
|
Reference in New Issue
Block a user