From 8e4ba52b1411f028f4f34b327a225278874a9399 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 7 Oct 2015 12:48:54 -0400
Subject: [PATCH] queue: Background color should fill cell

---
 include/staff/templates/queue-preview.tmpl.php | 2 +-
 include/staff/templates/queue-tickets.tmpl.php | 2 +-
 scp/css/scp.css                                | 9 +++++++++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/include/staff/templates/queue-preview.tmpl.php b/include/staff/templates/queue-preview.tmpl.php
index 32d664d90..645925fce 100644
--- a/include/staff/templates/queue-preview.tmpl.php
+++ b/include/staff/templates/queue-preview.tmpl.php
@@ -14,7 +14,7 @@ $tickets = $pageNav->paginate($tickets);
 $columns = $queue->getColumns();
 
 ?>
-<table class="list" border="0" cellspacing="1" cellpadding="2" width="940">
+<table class="list queue" border="0" cellspacing="1" cellpadding="2" width="940">
   <thead>
     <tr>
 <?php
diff --git a/include/staff/templates/queue-tickets.tmpl.php b/include/staff/templates/queue-tickets.tmpl.php
index 282ae7bd2..ad14667fe 100644
--- a/include/staff/templates/queue-tickets.tmpl.php
+++ b/include/staff/templates/queue-tickets.tmpl.php
@@ -89,7 +89,7 @@ return false;">
  <input type="hidden" name="a" value="mass_process" >
  <input type="hidden" name="do" id="action" value="" >
 
-<table class="list" border="0" cellspacing="1" cellpadding="2" width="940">
+<table class="list queue tickets" border="0" cellspacing="1" cellpadding="2" width="940">
   <thead>
     <tr>
 <?php
diff --git a/scp/css/scp.css b/scp/css/scp.css
index 7e6dd76bb..41f235442 100644
--- a/scp/css/scp.css
+++ b/scp/css/scp.css
@@ -300,6 +300,15 @@ a time {
     background-color: rgba(0,0,0,0.05);
 
 }
+
+/* Custom queue fields with background color should fill cell */
+table.queue.list > tbody > tr > td > [style*=background] {
+    display: block;
+    padding: 4px !important;
+    margin: -4px;
+    height: 100%;
+}
+
 /***********************************************************************
                  Start Custom Queues Menu System
 /***********************************************************************/
-- 
GitLab