Skip to content

Commit

Permalink
fixing list CSS styles (width and list style)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadassaf committed Mar 9, 2015
1 parent 45638d8 commit a923b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions booklight.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var booklight = function booklight() {

// Get the bookmarks folders from the local storage
chrome.storage.local.get("booklightFolders", function(bookmarks) {
booklight.fuzzyFolderSearch = new Fuse(bookmarks.booklightFolders, { keys: ['title'], threshold: 0.4});
booklight.fuzzyFolderSearch = new Fuse(bookmarks.booklightFolders, { keys: ['title'], threshold: 0.3});
bookmarks.booklightFolders.forEach(function(bookmark){
booklight.foldersDOM += '<li id="' + bookmark.id + '" data-dateGroupModified="' + bookmark.dateGroupModified + '" data-parent="' + bookmark.parentId + '" data-type="folder"';
if (!bookmark.folder) booklight.foldersDOM += 'class="isFolder"';
Expand Down Expand Up @@ -254,7 +254,9 @@ var booklight = function booklight() {

booklight.UI.updateCounter();
booklight.searchBar.val('');
id && booklight.elementStack.length ? booklight.UI.focusItem(id) : booklight.UI.higlightFirstElement(isFolder);

isFolder ? booklight.UI.higlightFirstElement(isFolder) : booklight.UI.focusItem(id);
//id && booklight.elementStack.length ? booklight.UI.focusItem(id) : booklight.UI.higlightFirstElement(isFolder);

}, isRoot: function(){
if (booklight.searchBar.attr('placeholder').indexOf('>') === -1) return true;
Expand Down
2 changes: 1 addition & 1 deletion css/booklight.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.booklight input[type="text"]::-webkit-input-placeholder {color: #BEB9B9;}
.booklight input[type="text"]:focus{border:none;box-shadow: none}
.booklight_list {position: relative;overflow-y: scroll;height: 215px;list-style: none;width: 96%;padding: 0 5px 0 0;color: #777; margin: 0 auto;}
.booklight_list>li{margin: 0; padding: 0 5px; cursor:pointer;line-height: 1.5em;font-size: 13px; text-align: left}
.booklight_list>li{margin: 0; padding: 0 5px; cursor:pointer;line-height: 1.5em;font-size: 13px; text-align: left; list-style: none; width:100%;}
.booklight_list > li > img {vertical-align: middle;margin: 0 10px 0 0;}
.booklight_list>li.isFolder {color:#3498db;}
.booklight_resultsbar {position: absolute;font-size: 9px;top: 55px;right: 10px;color: #ddd;}
Expand Down

0 comments on commit a923b9e

Please sign in to comment.