summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 16:06:09 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 16:06:09 -0500
commit823a945c9398bdfad2cbd6b9c816d5f494041b72 (patch)
tree8dc9df05bea3a96806665b2382930fff125461f6
parente59be3dc021e81babaacf70661737cbba42c80cc (diff)
Make the dashboard more responsive
-rw-r--r--app/Controller/App.php2
-rw-r--r--assets/css/app.css28
-rw-r--r--assets/css/dashboard.css28
3 files changed, 33 insertions, 25 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php
index 56e81179..87b4ccbe 100644
--- a/app/Controller/App.php
+++ b/app/Controller/App.php
@@ -148,7 +148,7 @@ class App extends Base
*/
private function getProjectPagination(array $project_ids, $paginate, $offset, $order, $direction)
{
- $limit = 5;
+ $limit = 10;
if (! in_array($order, array('id', 'name'))) {
$order = 'name';
diff --git a/assets/css/app.css b/assets/css/app.css
index 44bc9c2b..a4bb8919 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -1206,19 +1206,23 @@ tr td.task-orange,
margin-top: 10px;
color: #555;
}/* dashboard */
-#dashboard table {
- font-size: 0.9em;
-}
-.dashboard-left-column {
- width: 55%;
- float: left;
-}
+@media only screen and (min-width: 1366px) {
-.dashboard-right-column {
- margin-left: 5%;
- width: 40%;
- float: left;
+ #dashboard table {
+ font-size: 0.9em;
+ }
+
+ .dashboard-left-column {
+ width: 55%;
+ float: left;
+ }
+
+ .dashboard-right-column {
+ margin-left: 5%;
+ width: 40%;
+ float: left;
+ }
}
.dashboard-project-stats span {
@@ -1228,7 +1232,7 @@ tr td.task-orange,
}
.dashboard-project-stats strong {
- font-size: 1.1em;
+ font-size: 1.2em;
}
.dashboard-table-link {
diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css
index dc077180..4c47e9e0 100644
--- a/assets/css/dashboard.css
+++ b/assets/css/dashboard.css
@@ -1,17 +1,21 @@
/* dashboard */
-#dashboard table {
- font-size: 0.9em;
-}
-.dashboard-left-column {
- width: 55%;
- float: left;
-}
+@media only screen and (min-width: 1366px) {
+
+ #dashboard table {
+ font-size: 0.9em;
+ }
+
+ .dashboard-left-column {
+ width: 55%;
+ float: left;
+ }
-.dashboard-right-column {
- margin-left: 5%;
- width: 40%;
- float: left;
+ .dashboard-right-column {
+ margin-left: 5%;
+ width: 40%;
+ float: left;
+ }
}
.dashboard-project-stats span {
@@ -21,7 +25,7 @@
}
.dashboard-project-stats strong {
- font-size: 1.1em;
+ font-size: 1.2em;
}
.dashboard-table-link {