From 90ee80c5cc7aef890438a8d69680e79c8c8509c4 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 9 Aug 2014 00:09:35 -0400 Subject: [PATCH] The ticket page is now more responsive --- css/hesk_newStyle.php | 31 +++++++++++++++++++++++++++++++ ticket.php | 22 +++++++++++++--------- 2 files changed, 44 insertions(+), 9 deletions(-) diff --git a/css/hesk_newStyle.php b/css/hesk_newStyle.php index e28935f7..4cf8ca83 100644 --- a/css/hesk_newStyle.php +++ b/css/hesk_newStyle.php @@ -18,6 +18,37 @@ $questionMarkColor = $nuMods_settings['questionMarkColor']; ?> +@media (max-width:991px) { + .close-ticket { + text-align: left; + } +} + +@media (min-width:992px) { + .close-ticket { + text-align: right; + } +} + + +@media (max-width:991px) { + .ticket-cell { + border-bottom: solid 1px #ddd; + border-right: 0; + padding-top: 5px; + } +} + +@media (min-width:992px) { + .ticket-cell { + border-bottom: 0; + border-right: solid 1px #ddd; + margin-top: 1px; + height: 90px; + padding-top: 10px; + } +} + .row { margin-left: 0px; margin-right: 0px; diff --git a/ticket.php b/ticket.php index 131e1ed3..d2fea055 100644 --- a/ticket.php +++ b/ticket.php @@ -261,10 +261,13 @@ require_once(HESK_PATH . 'inc/header.inc.php');
-
-

:     :

+
+

:

-
+
+

:

+
+

'.$hesklang['open_action'].'';} else {echo ''.$hesklang['close_action'].'';} ?>

@@ -275,10 +278,10 @@ require_once(HESK_PATH . 'inc/header.inc.php'); if ($hesk_settings['cust_urgency']) { $repliesColumnWidth = 2; - echo '
';} elseif ($ticket['priority'] == 1) {echo 'highPriority">';} - else {echo 'medLowPriority" style="border-right: solid 1px #ddd; margin-top: 1px;">';} + else {echo 'medLowPriority">';} echo '

'.$hesklang['priority'].'

'; if ($ticket['priority']==0) {echo '

'.$hesklang['critical'].'

';} @@ -291,19 +294,20 @@ require_once(HESK_PATH . 'inc/header.inc.php'); { $hesk_settings['ticketColumnWidth'] = 3; } - echo '

'.$hesklang['status'].'

'; + echo '

'.$hesklang['status'].'

'; $ticketStatusKey = $ticket['statusKey']; echo '

'.$hesklang[$ticketStatusKey].'

'; echo '
'; - echo '

'.$hesklang['last_replier'].'

+ echo '

'.$hesklang['last_replier'].'

'.$ticket['repliername'].'

'; - echo '

'.$hesklang['category'].'

+ echo '

'.$hesklang['category'].'

'.$category['name'].'

'; - echo '

'.$hesklang['replies'].'

+ echo '

'.$hesklang['replies'].'

'.$replies.'

'; ?>
+