From e001acafc9acb5c1857253ec4a66c5be06228636 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 2 Oct 2014 12:14:26 -0500 Subject: [PATCH] i18n: rtl: Fix tab display for rtl viewers --- css/rtl.css | 9 +++++++++ include/staff/ticket-view.inc.php | 2 +- scp/css/bootstrap.css | 2 +- scp/css/scp.css | 7 ++++--- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/css/rtl.css b/css/rtl.css index ed51362c5..63ec9e487 100644 --- a/css/rtl.css +++ b/css/rtl.css @@ -90,3 +90,12 @@ margin-right: 0; margin-left: 0.3em; } +.rtl ul.tabs { + padding-left: 4px; + padding-right: 20px; + text-align:right; +} +.rtl #response_options ul.tabs { + padding-right:190px; + padding-left: 4px; +} diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index 27347d5a2..fe760996e 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -632,7 +632,7 @@ print $response_form->getField('attachments')->render(); </tr> </tbody> </table> - <p style="padding-left:165px;"> + <p style="padding:0 165px;"> <input class="btn_sm" type="submit" value="<?php echo __('Post Reply');?>"> <input class="btn_sm" type="reset" value="<?php echo __('Reset');?>"> </p> diff --git a/scp/css/bootstrap.css b/scp/css/bootstrap.css index 596bdd564..7a02fb748 100644 --- a/scp/css/bootstrap.css +++ b/scp/css/bootstrap.css @@ -1268,7 +1268,7 @@ legend + .control-group { } .nav-tabs > li, .nav-pills > li { - float: left; + display: inline-block; } .nav-tabs > li > a, .nav-pills > li > a { diff --git a/scp/css/scp.css b/scp/css/scp.css index b9ca8df1b..a085fe39f 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -919,14 +919,14 @@ ul.tabs li a { height:18px; line-height:20px; color:#444; - display:block; - float:left; + display:inline-block; outline:none; position:relative; - top:0; + bottom:1px; background:#fbfbfb; border:1px solid #eee; border-bottom:none; + text-align: center; } #response_options .reply_tab.tell { @@ -943,6 +943,7 @@ ul.tabs li a.active { border:1px solid #aaa; border-top:2px solid #81a9d7; border-bottom:none; + bottom: 0; } #response_options > form { -- GitLab