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.
This commit is contained in:
parent
d16a748f37
commit
9e4fd193c6
|
@ -523,3 +523,7 @@ p,
|
||||||
unicode-bidi: plaintext;
|
unicode-bidi: plaintext;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#descriptionWrapper {
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
|
|
|
@ -28,8 +28,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
<div id="descriptionWrapper">
|
||||||
<p><span style="white-space:pre-wrap"><%= channel.description_html %></span></p>
|
<p><span style="white-space:pre-wrap"><%= channel.description_html %></span></p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% ucid = channel.ucid %>
|
<% ucid = channel.ucid %>
|
||||||
|
|
|
@ -27,8 +27,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
<div id="descriptionWrapper">
|
||||||
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
|
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% ucid = channel.ucid %>
|
<% ucid = channel.ucid %>
|
||||||
|
|
|
@ -64,8 +64,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
<div id="descriptionWrapper">
|
||||||
<p><%= playlist.description_html %></p>
|
<p><%= playlist.description_html %></p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
|
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
|
||||||
<div class="h-box" style="text-align:right">
|
<div class="h-box" style="text-align:right">
|
||||||
|
|
|
@ -27,8 +27,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
<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>
|
<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>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% ucid = channel.ucid %>
|
<% ucid = channel.ucid %>
|
||||||
|
|
|
@ -246,7 +246,9 @@ we're going to need to do it here in order to allow for translations.
|
||||||
|
|
||||||
<div id="description-box"> <!-- Description -->
|
<div id="description-box"> <!-- Description -->
|
||||||
<% if video.description.size < 200 || params.extend_desc %>
|
<% if video.description.size < 200 || params.extend_desc %>
|
||||||
|
<div id="descriptionWrapper">
|
||||||
<%= video.description_html %>
|
<%= video.description_html %>
|
||||||
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<input id="descexpansionbutton" type="checkbox"/>
|
<input id="descexpansionbutton" type="checkbox"/>
|
||||||
<div id="descriptionWrapper">
|
<div id="descriptionWrapper">
|
||||||
|
|
Loading…
Reference in a new issue