From 7b97c50569514deb96aca26e9162949cc6fbd89b Mon Sep 17 00:00:00 2001
From: Frédéric Guillot <fred@kanboard.net>
Date: Sun, 28 Dec 2014 16:42:29 -0500
Subject: Improve css for tablets and fix minor bug

---
 app/Template/subtask/show.php   | 15 ++++++++++-----
 app/Template/swimlane/table.php |  4 ++--
 2 files changed, 12 insertions(+), 7 deletions(-)

(limited to 'app/Template')

diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php
index d0b3a606..b453762c 100644
--- a/app/Template/subtask/show.php
+++ b/app/Template/subtask/show.php
@@ -7,8 +7,8 @@
 
     <table class="subtasks-table">
         <tr>
-            <th width="40%"><?= t('Title') ?></th>
-            <th><?= t('Status') ?></th>
+            <th class="column-40"><?= t('Title') ?></th>
+            <th class="column-15"><?= t('Status') ?></th>
             <th><?= t('Assignee') ?></th>
             <th><?= t('Time tracking') ?></th>
             <?php if (! isset($not_editable)): ?>
@@ -42,9 +42,14 @@
             </td>
             <?php if (! isset($not_editable)): ?>
                 <td>
-                    <?= $this->a(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?>
-                    <?= t('or') ?>
-                    <?= $this->a(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?>
+                    <ul>
+                        <li>
+                            <?= $this->a(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?>
+                        </li>
+                        <li>
+                            <?= $this->a(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?>
+                        </li>
+                    </ul>
                 </td>
             <?php endif ?>
         </tr>
diff --git a/app/Template/swimlane/table.php b/app/Template/swimlane/table.php
index 32870ecc..cf22e31b 100644
--- a/app/Template/swimlane/table.php
+++ b/app/Template/swimlane/table.php
@@ -3,8 +3,8 @@
         <?php if (! isset($hide_position)): ?>
             <th><?= t('Position') ?></th>
         <?php endif ?>
-        <th class="column-70"><?= t('Name') ?></th>
-        <th><?= t('Actions') ?></th>
+        <th class="column-60"><?= t('Name') ?></th>
+        <th class="column-35"><?= t('Actions') ?></th>
     </tr>
     <?php foreach ($swimlanes as $swimlane): ?>
     <tr>
-- 
cgit v1.2.3