[Pkg-mozext-commits] [requestpolicy] 11/100: Remove fixed column sizes on manage policies page.

David Prévot taffit at moszumanska.debian.org
Fri Dec 12 22:56:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 971191c1d808d2a80bfaa3423747159a246fbc18
Author: Christopher Bura <christopher.bura at gmail.com>
Date:   Wed Sep 3 15:26:34 2014 -0400

    Remove fixed column sizes on manage policies page.
    
    See
    https://github.com/RequestPolicyContinued/requestpolicy/pull/459#issuecomment-54340418
---
 src/content/settings/settings.css    | 18 +++---------------
 src/content/settings/yourpolicy.html |  9 +--------
 src/content/settings/yourpolicy.js   |  4 ++--
 3 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/src/content/settings/settings.css b/src/content/settings/settings.css
index 8afc7a7..bebcbd2 100644
--- a/src/content/settings/settings.css
+++ b/src/content/settings/settings.css
@@ -221,7 +221,6 @@ table.settings tr:not(:first-child) {
 }
 
 #policy-user {
-  table-layout: fixed;
 }
 
 #policy-user th {
@@ -239,20 +238,9 @@ table.settings tr:not(:first-child) {
   word-wrap: break-word;
 }
 
-#policy-user col.type {
-  width: 100px;
-}
-
-#policy-user col.source {
-  width: 200px;
-}
-
-#policy-user col.remove {
-  width: 50px;
-}
-
-#policy-user tbody td.remove {
-  text-align: right;
+#policy-user tbody tr td:nth-child(2),
+#policy-user tbody tr td:nth-child(3) {
+  width: 50%;
 }
 
 a.deleterule {
diff --git a/src/content/settings/yourpolicy.html b/src/content/settings/yourpolicy.html
index 86ce0a8..df367ba 100644
--- a/src/content/settings/yourpolicy.html
+++ b/src/content/settings/yourpolicy.html
@@ -94,14 +94,7 @@
             </div>
           </div>
           <div class="policydata">
-            <table id="policy-user" class="policy">
-              <colgroup>
-                <col class="type">
-                <col class="origin">
-                <col class="destination">
-                <col class="source">
-                <col class="remove">
-              </colgroup>
+            <table id="policy-user">
               <thead>
                 <tr>
                   <th data-string="type"></th>
diff --git a/src/content/settings/yourpolicy.js b/src/content/settings/yourpolicy.js
index 56378f3..036e124 100644
--- a/src/content/settings/yourpolicy.js
+++ b/src/content/settings/yourpolicy.js
@@ -96,7 +96,7 @@ function addPolicyTableRow(table, type, origin, dest, ruleData, source) {
   var row = $('<tr>').addClass(type_class).appendTo(table);
 
   row.append(
-    $('<td>').text(rule_type).addClass('type'),
+    $('<td>').text(rule_type),
     $('<td>').text(origin),
     $('<td>').text(dest),
     $('<td>').text(source)
@@ -113,7 +113,7 @@ function addPolicyTableRow(table, type, origin, dest, ruleData, source) {
     row.remove();
   });
 
-  row.append($('<td>').append(anchor).addClass('remove'));
+  row.append($('<td>').append(anchor));
 }
 
 // TODO: remove code duplication with menu.js

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list