kopia lustrzana https://github.com/iv-org/invidious
Replace inline styling for download widget with css file
rodzic
069e91d2a6
commit
8125ddca06
|
@ -0,0 +1,3 @@
|
||||||
|
#download_widget {
|
||||||
|
width: 100%;
|
||||||
|
}
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue