Browse Source

Replace 1% widths with 1px in admin tables

rafalp 6 years ago
parent
commit
0e4b849caa

+ 3 - 3
misago/templates/misago/admin/agreements/list.html

@@ -13,13 +13,13 @@
 
 
 {% block table-header %}
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "Agreement" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th style="width: 180px;">{% trans "Type" %}</th>
 <th style="width: 250px;">{% trans "Created" %}</th>
 <th style="width: 250px;">{% trans "Modified" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 2 - 2
misago/templates/misago/admin/attachments/list.html

@@ -3,10 +3,10 @@
 
 
 {% block table-header %}
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "Attachment" %}</th>
 <th style="width: 40%;">{% trans "Thread" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 2 - 2
misago/templates/misago/admin/categoryroles/list.html

@@ -13,8 +13,8 @@
 
 
 {% block table-header %}
-<th>{% trans "Category role" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th>{% trans "Roles" %}</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 4 - 4
misago/templates/misago/admin/datadownloads/list.html

@@ -13,16 +13,16 @@
 
 
 {% block table-header %}
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "User" %}</th>
 <th>{% trans "Status" %}</th>
 <th>{% trans "Requested on" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "Requested by" %}</th>
 {% for action in extra_actions %}
-  <th style="width: 1%;">&nbsp;</th>
+  <th style="width: 1px;">&nbsp;</th>
 {% endfor %}
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 6 - 6
misago/templates/misago/admin/ranks/list.html

@@ -13,17 +13,17 @@
 
 
 {% block table-header %}
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "Rank" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 <th>{% trans "Title" %}</th>
 <th>{% trans "CSS class" %}</th>
 {% for action in extra_actions %}
-  <th style="width: 1%;">&nbsp;</th>
+  <th style="width: 1px;">&nbsp;</th>
 {% endfor %}
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 2 - 2
misago/templates/misago/admin/roles/list.html

@@ -14,7 +14,7 @@
 
 {% block table-header %}
 <th>{% trans "Role" %}</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 
@@ -54,7 +54,7 @@
 
 
 {% block blankslate %}
-<td colspan="{{ 2">
+<td colspan="2">
   {% trans "No user roles are set." %}
 </td>
 {% endblock blankslate %}

+ 9 - 9
misago/templates/misago/admin/themes/assets/css.html

@@ -32,14 +32,14 @@
       {% csrf_token %}
       <table class="table">
         <tr>
-          <th style="width: 1%;">&nbsp;</th>
+          <th style="width: 1px;">&nbsp;</th>
           <th>{% trans "Name" %}</th>
           <th>{% trans "Modified" %}</th>
           <th>{% trans "Size" %}</th>
-          <th style="width: 1%;">&nbsp;</th>
-          <th style="width: 1%;">&nbsp;</th>
-          <th style="width: 1%;">&nbsp;</th>
-          <th style="width: 1%;">
+          <th style="width: 1px;">&nbsp;</th>
+          <th style="width: 1px;">&nbsp;</th>
+          <th style="width: 1px;">&nbsp;</th>
+          <th style="width: 1px;">
             <input type="checkbox" {% if not css %}disabled{% endif %}>
           </th>
         </tr>
@@ -59,17 +59,17 @@
               </abbr>
             </td>
             <td>{{ item.size|filesizeformat }}</td>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               <button type="button" class="btn btn-light btn-sm btn-move" data-form="move-down-{{ item.pk }}" data-tooltip="top" title="{% trans 'Move down' %}" {% if forloop.last %}disabled{% endif %}>
                 <span class="fa fa-chevron-down"></span>
               </button>
             </td>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               <button type="button" class="btn btn-light btn-sm btn-move" data-form="move-up-{{ item.pk }}" data-tooltip="top" title="{% trans 'Move up' %}" {% if forloop.first %}disabled{% endif %}>
                 <span class="fa fa-chevron-up"></span>
               </button>
             </td>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               {% if item.url %}
                 <a href="{% url 'misago:admin:appearance:themes:edit-css-link' pk=theme.pk css_pk=item.pk %}" class="btn btn-light btn-sm">
                   <span class="fa fa-pencil"></span>
@@ -82,7 +82,7 @@
                 </a>
               {% endif %}
             </td>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               <input type="checkbox" name="item" value="{{ item.pk }}">
             </td>
           </tr>

+ 4 - 4
misago/templates/misago/admin/themes/assets/media.html

@@ -20,19 +20,19 @@
       {% csrf_token %}
       <table class="table">
         <tr>
-          <th style="width: 1%;">&nbsp;</th>
+          <th style="width: 1px;">&nbsp;</th>
           <th>{% trans "Name" %}</th>
           <th>{% trans "Modified" %}</th>
           <th>{% trans "Size" %}</th>
           <th>{% trans "Type" %}</th>
           <th>{% trans "Dimensions" %}</th>
-          <th style="width: 1%;">
+          <th style="width: 1px;">
             <input type="checkbox" {% if not media %}disabled{% endif %}>
           </th>
         </tr>
         {% for item in media %}
           <tr>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               {% if item.thumbnail %}
                 <a class="img-preview" href="{{ item.file.url }}" target="blank" data-tooltip="top" title="{% trans 'Preview' %}">
                   <span style="background-image: url({{ item.thumbnail.url }});"></span>
@@ -60,7 +60,7 @@
                 &nbsp;
               {% endif %}
             </td>
-            <td style="width: 1%;">
+            <td style="width: 1px;">
               <input type="checkbox" name="item" value="{{ item.pk }}">
             </td>
           </tr>

+ 2 - 2
misago/templates/misago/admin/themes/list.html

@@ -20,8 +20,8 @@
 
 {% block table-header %}
 <th>{% trans "Theme" %}</th>
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}
 
 

+ 1 - 1
misago/templates/misago/admin/users/ban.html

@@ -25,7 +25,7 @@ class="form-horizontal"
 <table class="table table-condensed form-table">
   {% for user in users %}
     <tr>
-      <td style="width: 1%;">
+      <td style="width: 1px;">
         <a href="{{ user.get_absolute_url }}">
           <img src="{{ user|avatar:24 }}" alt="{% trans "Avatar" %}" width="24" height="24">
         </a>

+ 5 - 5
misago/templates/misago/admin/warnings/list.html

@@ -18,12 +18,12 @@
 <th style="width: 20%;">{% trans "Replying" %}</th>
 <th style="width: 20%;">{% trans "Starting threads" %}</th>
 {% for action in extra_actions %}
-  <th style="width: 1%;">&nbsp;</th>
+  <th style="width: 1px;">&nbsp;</th>
 {% endfor %}
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
-<th style="width: 1%;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
+<th style="width: 1px;">&nbsp;</th>
 {% endblock table-header %}