mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-28 01:28:30 +00:00
Add btn in video desc to show transcript
This commit is contained in:
parent
81ca831439
commit
654f5fd45e
@ -816,3 +816,20 @@ h1, h2, h3, h4, h5, p,
|
|||||||
#download_widget {
|
#download_widget {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.description-widget {
|
||||||
|
display: flex;
|
||||||
|
white-space: normal;
|
||||||
|
gap: 15px;
|
||||||
|
|
||||||
|
border-top: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-show-transcript-widget {
|
||||||
|
padding: 10px;
|
||||||
|
flex-direction: column
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-show-transcript-widget > * {
|
||||||
|
margin: 0;
|
||||||
|
}
|
@ -501,5 +501,7 @@
|
|||||||
"toggle_theme": "Toggle Theme",
|
"toggle_theme": "Toggle Theme",
|
||||||
"carousel_slide": "Slide {{current}} of {{total}}",
|
"carousel_slide": "Slide {{current}} of {{total}}",
|
||||||
"carousel_skip": "Skip the Carousel",
|
"carousel_skip": "Skip the Carousel",
|
||||||
"carousel_go_to": "Go to slide `x`"
|
"carousel_go_to": "Go to slide `x`",
|
||||||
|
"video_description_show_transcript_section_label": "Transcripts",
|
||||||
|
"video_description_show_transcript_section_button": "Show transcript"
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,14 @@ we're going to need to do it here in order to allow for translations.
|
|||||||
<div id="descriptionWrapper"><%= video.description_html %></div>
|
<div id="descriptionWrapper"><%= video.description_html %></div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<input id="descexpansionbutton" type="checkbox"/>
|
<input id="descexpansionbutton" type="checkbox"/>
|
||||||
<div id="descriptionWrapper"><%= video.description_html %></div>
|
<div id="descriptionWrapper"><%-= video.description_html %>
|
||||||
|
<% if captions %>
|
||||||
|
<div class="description-widget description-show-transcript-widget">
|
||||||
|
<h4><%=HTML.escape(translate(locale, "video_description_show_transcript_section_label"))%></h4>
|
||||||
|
<a class="pure-button pure-button-secondary"><%=HTML.escape(translate(locale, "video_description_show_transcript_section_button"))%></a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
<label for="descexpansionbutton">
|
<label for="descexpansionbutton">
|
||||||
<a></a>
|
<a></a>
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user