Replace inline styling for download widget with css file

pull/4162/head
jt404 2023-10-12 03:21:34 +02:00
rodzic 069e91d2a6
commit 8125ddca06
3 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
#download_widget {
width: 100%;
}

Wyświetl plik

@ -42,8 +42,7 @@ module Invidious::Frontend::WatchPage
str << translate(locale, "Download as: ") str << translate(locale, "Download as: ")
str << "</label>\n" str << "</label>\n"
# TODO: remove inline style str << "\t\t<select name='download_widget' id='download_widget'>\n"
str << "\t\t<select style=\"width:100%\" name='download_widget' id='download_widget'>\n"
# Non-DASH videos (audio+video) # Non-DASH videos (audio+video)

Wyświetl plik

@ -28,6 +28,7 @@
<meta name="twitter:player:height" content="720"> <meta name="twitter:player:height" content="720">
<link rel="alternate" href="https://www.youtube.com/watch?v=<%= video.id %>"> <link rel="alternate" href="https://www.youtube.com/watch?v=<%= video.id %>">
<%= rendered "components/player_sources" %> <%= rendered "components/player_sources" %>
<link rel="stylesheet" href="/css/download-widget.css">
<title><%= title %> - Invidious</title> <title><%= title %> - Invidious</title>
<!-- Description expansion also updates the 'Show more' button to 'Show less' so <!-- Description expansion also updates the 'Show more' button to 'Show less' so