mirror of https://github.com/iv-org/invidious.git
Remove whitespace in chapters component
This commit is contained in:
parent
ddd931573a
commit
2cd3ded93b
|
@ -1,23 +1,20 @@
|
||||||
<% if !chapters.empty? %>
|
<% if !chapters.empty? %>
|
||||||
<hr class="description-content-separator"/>
|
<hr class="description-content-separator"/>
|
||||||
<div class="description-chapters-section">
|
<div class="description-chapters-section">
|
||||||
<p class="description-chapter">
|
|
||||||
<h5>Chapters</h5>
|
<h5>Chapters</h5>
|
||||||
|
|
||||||
<div class="description-chapters-content-container">
|
<div class="description-chapters-content-container">
|
||||||
<% chapters.each do | chapter |%>
|
<% chapters.each do | chapter |%>
|
||||||
<div class="chapter">
|
<div class="chapter">
|
||||||
<a href="/watch?v=<%= video.id %>&t=<%=chapter.start_ms.milliseconds.total_seconds %>">
|
<a href="/watch?v=<%= video.id %>&t=<%=chapter.start_ms.milliseconds.total_seconds.to_i %>">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<% if !env.get("preferences").as(Preferences).thin_mode %>
|
<%- if !env.get("preferences").as(Preferences).thin_mode -%>
|
||||||
<img loading="lazy" class="thumbnail" src="<%=URI.parse(chapter.thumbnails[-1]["url"].to_s).request_target %>" alt="" />
|
<img loading="lazy" class="thumbnail" src="<%-=URI.parse(chapter.thumbnails[-1]["url"].to_s).request_target %>" alt="" />
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
<div class="thumbnail-placeholder"></div>
|
<div class="thumbnail-placeholder"></div>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
</div>
|
</div>
|
||||||
|
<p><%-= recode_length_seconds(chapter.start_ms.milliseconds.total_seconds) %></p>
|
||||||
<p><%= recode_length_seconds(chapter.start_ms.milliseconds.total_seconds) %></p>
|
<p><%-=chapter.title%></p>
|
||||||
<p><%=chapter.title%></p>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue