Fix uncentered channel banner image

(cherry picked from commit 791d54635a)
This commit is contained in:
syeopite 2021-04-17 04:10:18 -07:00
parent f062014f84
commit e8677432e9
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82
2 changed files with 3 additions and 3 deletions

View file

@ -7,8 +7,8 @@
flex-direction: column-reverse; flex-direction: column-reverse;
height: calc(100vw / 6.2 - 1px); height: calc(100vw / 6.2 - 1px);
background-size: cover !important; background-size: cover;
background-repeat: no-repeat !important; background-position: center;
} }
#link-holder { #link-holder {

View file

@ -1,6 +1,6 @@
<% if channel.banner %> <% if channel.banner %>
<div class="pure-g" id="channel-banner-container"> <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 class="pure-u-1" id="banner" style='background-image: url(/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>)'>
<% if channel.links %> <% if channel.links %>
<div id="link-holder"> <div id="link-holder">
<div id="link-widget-primary" class="link-widget-link"> <div id="link-widget-primary" class="link-widget-link">