From 619eca5ee345a9325ded6f4b2fb49427f63c50e4 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 16 Apr 2021 00:27:37 -0700 Subject: [PATCH] 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. (cherry picked from commit 04cc15500f653f7b0a818bd468e73ed7f5c230a1) --- assets/css/default.css | 10 ++++++++++ src/invidious/views/components/channel-information.ecr | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index e471c738..672b2fb4 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -15,6 +15,16 @@ body { background-color: rgb(255, 0, 0, 0.5); } +#channel-banner-container { + margin-bottom: 1em; +} + +#banner { + height: calc(100vw / 6.2 - 1px); + background-size: cover !important; + background-repeat: no-repeat !important; +} + .channel-profile > * { font-size: 1.17em; font-weight: bold; diff --git a/src/invidious/views/components/channel-information.ecr b/src/invidious/views/components/channel-information.ecr index a756a446..a3c7a9f0 100644 --- a/src/invidious/views/components/channel-information.ecr +++ b/src/invidious/views/components/channel-information.ecr @@ -4,8 +4,9 @@ <% end %> <% if channel.banner %> -
- "> +
+