RTL/LTR rendering engine hinting

This prevents UI glitches with RTL feeds.

Use the unicode LTR marker character to hint the rending engine which
part of a RTL/LTR mixed string is LTR. This prevents UI glitches with
RTL feeds like http://www.ynet.co.il/Integration/StoryRss544.xml.

The entity has to be outside of the span tag to prevent flickering when
the counter is update via javascript.
This commit is contained in:
Mathias Kresin 2014-12-31 14:01:27 +01:00
parent 9d31eb1a01
commit 49a905db4c
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<?php else: ?>
<div class="page-header">
<h2><?= Helper\escape($feed['title']) ?><span id="page-counter"><?= isset($nb_items) ? $nb_items : '' ?></span></h2>
<h2><?= Helper\escape($feed['title']) ?>&lrm;<span id="page-counter"><?= isset($nb_items) ? $nb_items : '' ?></span></h2>
<ul>
<li>
<a href="?action=refresh-feed&amp;feed_id=<?= $feed['id'] ?>&amp;redirect=feed-items"><?= t('refresh') ?></a>

View File

@ -29,7 +29,7 @@
<?= Helper\favicon($favicons, $feed['id']) ?>
<a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>" title="<?= t('Show only this subscription') ?>"><?= Helper\escape($feed['title']) ?></a>
<span class="items-count"><?= $feed['items_unread'] .'/' . $feed['items_total'] ?></span>
&lrm;<span class="items-count"><?= $feed['items_unread'] .'/' . $feed['items_total'] ?></span>
<?php if ($feed['enabled']): ?>