← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8398: Improved style for dashboard search

 

------------------------------------------------------------
revno: 8398
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-10-06 11:26:35 +0200
message:
  Improved style for dashboard search
modified:
  dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/dashboard/impl/DefaultDashboardService.java
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/dashboard/impl/DefaultDashboardService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/dashboard/impl/DefaultDashboardService.java	2012-10-05 16:00:19 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/dashboard/impl/DefaultDashboardService.java	2012-10-06 09:26:35 +0000
@@ -56,8 +56,8 @@
 public class DefaultDashboardService
     implements DashboardService
 {
-    private static final int MAX_PER_OBJECT = 6;
-    private static final int MAX_OBJECTS = 18;
+    private static final int MAX_PER_OBJECT = 5;
+    private static final int MAX_OBJECTS = 15;
     
     // -------------------------------------------------------------------------
     // Dependencies

=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css	2012-10-05 16:00:19 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css	2012-10-06 09:26:35 +0000
@@ -108,14 +108,14 @@
   position: absolute;
   left: 260px;
   height: 25px;
-  width: 330px;
+  width: 350px;
   border: 1px solid #ccc;
   padding: 2px 6px 0 6px;
 }
 
 #searchField
 {
-  width: 300px;
+  width: 320px;
   border: 0;
   outline: none;
   width: 100%;
@@ -128,7 +128,7 @@
   position: absolute;
   margin-top: 29px;
   left: 260px;
-  width: 342px;
+  width: 362px;
   border-right: 1px solid #bbb;
   border-bottom: 1px solid #bbb;
   border-left: 1px solid #bbb;
@@ -143,9 +143,17 @@
   list-style-type: none;
 }
 
-#hitDiv li
-{
-  padding: 5px 5px 5px 10px;
+#hitDiv a
+{
+  display: block;
+  width: 100%;
+  padding: 7px 6px 7px 12px;
+}
+
+#hitDiv a:hover
+{
+  text-decoration: none;
+  background-color: #eee;
 }
 
 #shareForm