From 671fe0101353dd002e6e45e7f7ac277b61feaf66 Mon Sep 17 00:00:00 2001 From: Nick Sabia Date: Sat, 7 Sep 2024 18:16:33 -0500 Subject: [PATCH 01/13] fix: description no longer hijacks scroll focus introduced a button in video descriptions shwon as 'Click to View Description' which allows the user to see the full description and scroll within the description card. --- .../WatchVideoDescription.css | 15 +++++++++++++ .../WatchVideoDescription.vue | 22 ++++++++++++++++++- static/locales/en-US.yaml | 2 ++ static/locales/en_GB.yaml | 2 ++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/WatchVideoDescription/WatchVideoDescription.css b/src/renderer/components/WatchVideoDescription/WatchVideoDescription.css index c7b2a437e55d8..fcbe034110f0b 100644 --- a/src/renderer/components/WatchVideoDescription/WatchVideoDescription.css +++ b/src/renderer/components/WatchVideoDescription/WatchVideoDescription.css @@ -9,3 +9,18 @@ white-space: pre-wrap; overflow-wrap: anywhere; } + +.getDescriptionTitle { + margin: 0; + padding-block: 8px; + text-align: center; + text-decoration: underline; + cursor: pointer; + color: var(--title-color); +} + +.short { + block-size: 230px; + overflow: hidden; + mask-image: linear-gradient(180deg, rgb(2 0 36 / 100%) 80%, rgb(255 255 255 / 0%) 100%); +} diff --git a/src/renderer/components/WatchVideoDescription/WatchVideoDescription.vue b/src/renderer/components/WatchVideoDescription/WatchVideoDescription.vue index 37a12ea6eafca..705bb8a34727e 100644 --- a/src/renderer/components/WatchVideoDescription/WatchVideoDescription.vue +++ b/src/renderer/components/WatchVideoDescription/WatchVideoDescription.vue @@ -4,16 +4,28 @@ class="videoDescription" > +

+ {{ $t("Description.Click to View Description") }} +