From 788cb1ea9877046ae206ba89d639249c598ece1d Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Tue, 11 Feb 2014 00:18:46 -0300 Subject: [PATCH] fixing ui --- .../src/main/webapp/css/mindmapList.less | 36 +++---- wise-webapp/src/main/webapp/js/mindmapList.js | 15 +-- .../src/main/webapp/jsp/mindmapList.jsp | 98 +++++++++++++++++-- 3 files changed, 114 insertions(+), 35 deletions(-) diff --git a/wise-webapp/src/main/webapp/css/mindmapList.less b/wise-webapp/src/main/webapp/css/mindmapList.less index cf832dc4..1a84e948 100644 --- a/wise-webapp/src/main/webapp/css/mindmapList.less +++ b/wise-webapp/src/main/webapp/css/mindmapList.less @@ -1,4 +1,4 @@ -@import "bootstrap/css/bootstrap-colorpicker.min.css"; +@import "../bootstrap/css/bootstrap-colorpicker.min.css"; @import "../bootstrap/css/bootstrap.min.css"; @import "pageHeaders.css"; @@ -14,32 +14,17 @@ @base-color: #111; /* ----------------------------- General -------------------------------- */ -.nav-list { - margin-top: -20px; -} -.nav-list li { +.nav-pills li { position: relative; width: 90%; } -.nav-list a, .nav-header { - margin-top: 4px; - border: 1px solid rgb(213, 207, 207); - border-radius: 6px; - box-shadow: 0px 1px 3px #888888; -} -.nav-header { - background-color: #eee; +.nav-pills { + width: 108%; } .active { position: relative; left: 8px; } -#mindmapListTable { - border-radius: 6px; - left: -4px; - position: relative; - box-shadow: 0px 1px 9px #888888; -} #mindmapListContainer { background: #FFFFFF; @@ -146,8 +131,8 @@ input#selectAll { height: 12px; display: inline-block; position: relative; - left: 2px; - top: 1px; + left: 3px; + top: 2px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; @@ -155,6 +140,11 @@ input#selectAll { float: left; } +.colorInput { + border-radius: 4px !important; + border: 1px solid #ccc !important; +} + .labelIcon { float: left; } @@ -163,7 +153,7 @@ input#selectAll { display: inline-block; position: relative; left: 7px; - top: -1px; + top: -2px; } .labelNameList { @@ -201,6 +191,8 @@ input#selectAll { margin-bottom: 0px; margin-right: 5px; float: right; + position: relative; + top: 3px; } table.tableTag td { diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js index 301d6adb..adf1a632 100644 --- a/wise-webapp/src/main/webapp/js/mindmapList.js +++ b/wise-webapp/src/main/webapp/js/mindmapList.js @@ -510,6 +510,13 @@ $(function () { } } }); + + //setting max heigth to ul filters... + var maxHeight = $("#map-table").height() - 20; + $("#foldersContainer ul").css('overflow-y', 'scrollbar'); + $("#foldersContainer ul").css('overflow-x', 'hidden'); + $("#foldersContainer ul").height(maxHeight); + }) }); @@ -519,7 +526,7 @@ function createLabelItem(data, id) { var labelItem = $("
  • "); labelItem.append( " " + - "" + + "" + "
    " + "
    " + data.title + "
    " + "" + @@ -624,13 +631,9 @@ function linkLabelToMindmap(mapIds, label) { } //animations... -$(document).on('mouseenter', '#foldersContainer li[class!="nav-header"]', function (event) { +$(document).on('click', '#foldersContainer li[class!="nav-header"]', function (event) { if ($(this).attr('class') != 'active') { $(this).animate({left: '+=8px'}, 'fast'); } }); -$(document).on('mouseleave', '#foldersContainer li[class!="active"][class!="nav-header"]', function (event) { - $(this).animate({left: '-=8px'}, 'fast'); -}); - diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 37433599..8b5735e6 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -15,6 +15,8 @@ + + @@ -50,11 +52,11 @@ }, { sTitle: "", - sWidth: "270px", + sWidth:"430px", bUseRendered: false, mDataProp: "title", fnRender: function (obj) { - return '
    ' + $('').text(obj.aData.title).html() + ''; + return '' + $('').text(obj.aData.title).html() + '' + labelTagsAsHtml(obj.aData.labels); } }, { @@ -86,6 +88,8 @@ bStateSave: true }); + $('#colorGroup').colorpicker(); + // Customize search action ... $('#mindmapListTable_filter').appendTo("#tableActions"); $('#mindmapListTable_filter input').addClass('input-small search-query form-control'); @@ -130,18 +134,18 @@