diff options
| author | jt404 <jt404@tutanota.com> | 2023-10-12 03:21:34 +0200 |
|---|---|---|
| committer | jt404 <jt404@tutanota.com> | 2023-10-12 03:22:34 +0200 |
| commit | 8125ddca06c57898f7615eca55ee2a5979150bdd (patch) | |
| tree | d7d4302f81ad8850cf398d717da723c0fbb795dd /src | |
| parent | 069e91d2a609b1df94bdfbb693335969b2a281d8 (diff) | |
| download | invidious-8125ddca06c57898f7615eca55ee2a5979150bdd.tar.gz invidious-8125ddca06c57898f7615eca55ee2a5979150bdd.tar.bz2 invidious-8125ddca06c57898f7615eca55ee2a5979150bdd.zip | |
Replace inline styling for download widget with css file
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/frontend/watch_page.cr | 3 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/frontend/watch_page.cr b/src/invidious/frontend/watch_page.cr index 5fd81168..c8cb7110 100644 --- a/src/invidious/frontend/watch_page.cr +++ b/src/invidious/frontend/watch_page.cr @@ -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) diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 62a154a4..c38dd039 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -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 |
