mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix uncentered channel banner image
This commit is contained in:
parent
a566a45571
commit
4d1297f257
2 changed files with 3 additions and 3 deletions
|
@ -7,8 +7,8 @@
|
|||
flex-direction: column-reverse;
|
||||
|
||||
height: calc(100vw / 6.2 - 1px);
|
||||
background-size: cover !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
#link-holder {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<% if channel.banner %>
|
||||
<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 %>
|
||||
<div id="link-holder">
|
||||
<div id="link-widget-primary" class="link-widget-link">
|
||||
|
|
Loading…
Reference in a new issue