Limit descriptions width to ease mixed LTR/RTL text reading

This will prevent, on large pages, the LTR and RTL text to be
far away, on each side of the page. This could happen on channel
and playlists descriptions, when the page is displayed on a large
screen.
このコミットが含まれているのは:
Samantaz Fox 2021-06-24 15:00:55 +02:00 committed by Mostafa Ahangarha
コミット 9e4fd193c6
6個のファイルの変更19行の追加5行の削除

ファイルの表示

@ -523,3 +523,7 @@ p,
unicode-bidi: plaintext;
text-align: start;
}
#descriptionWrapper {
max-width: 600px;
}

ファイルの表示

@ -28,7 +28,9 @@
</div>
<div class="h-box">
<p><span style="white-space:pre-wrap"><%= channel.description_html %></span></p>
<div id="descriptionWrapper">
<p><span style="white-space:pre-wrap"><%= channel.description_html %></span></p>
</div>
</div>
<div class="h-box">

ファイルの表示

@ -27,7 +27,9 @@
</div>
<div class="h-box">
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
<div id="descriptionWrapper">
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
</div>
</div>
<div class="h-box">

ファイルの表示

@ -64,7 +64,9 @@
</div>
<div class="h-box">
<p><%= playlist.description_html %></p>
<div id="descriptionWrapper">
<p><%= playlist.description_html %></p>
</div>
</div>
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>

ファイルの表示

@ -27,7 +27,9 @@
</div>
<div class="h-box">
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %></span></p>
<div id="descriptionWrapper">
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %></span></p>
</div>
</div>
<div class="h-box">

ファイルの表示

@ -246,7 +246,9 @@ we're going to need to do it here in order to allow for translations.
<div id="description-box"> <!-- Description -->
<% if video.description.size < 200 || params.extend_desc %>
<%= video.description_html %>
<div id="descriptionWrapper">
<%= video.description_html %>
</div>
<% else %>
<input id="descexpansionbutton" type="checkbox"/>
<div id="descriptionWrapper">