mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Replace inline styling for download widget with css file
This commit is contained in:
parent
069e91d2a6
commit
8125ddca06
3 changed files with 5 additions and 2 deletions
3
assets/css/download-widget.css
Normal file
3
assets/css/download-widget.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
#download_widget {
|
||||
width: 100%;
|
||||
}
|
|
@ -42,8 +42,7 @@ module Invidious::Frontend::WatchPage
|
|||
str << translate(locale, "Download as: ")
|
||||
str << "</label>\n"
|
||||
|
||||
# TODO: remove inline style
|
||||
str << "\t\t<select style=\"width:100%\" name='download_widget' id='download_widget'>\n"
|
||||
str << "\t\t<select name='download_widget' id='download_widget'>\n"
|
||||
|
||||
# Non-DASH videos (audio+video)
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<meta name="twitter:player:height" content="720">
|
||||
<link rel="alternate" href="https://www.youtube.com/watch?v=<%= video.id %>">
|
||||
<%= rendered "components/player_sources" %>
|
||||
<link rel="stylesheet" href="/css/download-widget.css">
|
||||
<title><%= title %> - Invidious</title>
|
||||
|
||||
<!-- Description expansion also updates the 'Show more' button to 'Show less' so
|
||||
|
|
Loading…
Reference in a new issue