Fixed text wrapping problem, which was being solved in langues with spaces between...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 21 Jul 2009 22:03:31 +0000 (22:03 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 21 Jul 2009 22:03:31 +0000 (22:03 +0000)
skins/Vector.php
skins/vector/main-ltr.css
skins/vector/main-rtl.css

index 2a8855c..89b8239 100644 (file)
@@ -717,7 +717,7 @@ class VectorTemplate extends QuickTemplate {
        <div class="menu">
                <ul <?php $this->html('userlangattributes') ?>>
                        <?php foreach ($this->data['variant_urls'] as $key => $link ): ?>
-                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo str_replace( ' ', '&nbsp;', htmlspecialchars( $link['text'] ) ) ?></a></li>
+                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
                        <?php endforeach; ?>
                </ul>
        </div>
@@ -747,7 +747,7 @@ class VectorTemplate extends QuickTemplate {
        <div class="menu">
                <ul <?php $this->html('userlangattributes') ?>>
                        <?php foreach ($this->data['action_urls'] as $key => $link ): ?>
-                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo str_replace( ' ', '&nbsp;', htmlspecialchars( $link['text'] ) ) ?></a></li>
+                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
                        <?php endforeach; ?>
                </ul>
        </div>
index 6b0527e..d45152b 100644 (file)
@@ -269,6 +269,7 @@ body {
        div.vectorMenu li a {
                display: inline-block;
                padding: 0.5em;
+               white-space: nowrap;
        }
        /* IGNORED BY IE6 */
        div.vectorMenu li > a {
index 0b0c79b..03980c4 100644 (file)
@@ -269,6 +269,7 @@ body {
        div.vectorMenu li a {
                display: inline-block;
                padding: 0.5em;
+               white-space: nowrap;
        }
        /* IGNORED BY IE6 */
        div.vectorMenu li > a {