Skip to content

Commit

Permalink
首页加横线区分分类
Browse files Browse the repository at this point in the history
  • Loading branch information
luchenqun committed Dec 24, 2021
1 parent 7b0ed14 commit 27f1ccd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions view/scripts/controllers/tags-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
clearInterval(id);
}
}, 10);
} else if ($scope.showMode == 'item' && bookmarks.length == $scope.pageSize) {
$timeout(() => {
$("#" + bookmarks[bookmarks.length * 2 / 5 - 1].id).after(`<div class="ui divider" style="width:100%;margin:0px 15px"></div>`);
$("#" + bookmarks[bookmarks.length * 4 / 5 - 1].id).after(`<div class="ui divider" style="width:100%;margin:0px 15px"></div>`);
}, 100);
}

$timeout(function () {
Expand Down
4 changes: 2 additions & 2 deletions view/views/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
</div>
</div>
<div class="ui huge text centered inline loader" style="margin: 10px 0px;" ng-class="{active:loading, disabled: !loading}">正在加载中...</div>
<div class="ui huge text centered inline loader" style="margin: 10px 0px" ng-class="{active:loading, disabled: !loading}">正在加载中...</div>
<table class="ui selectable sortable celled table js-tags-table" ng-if="showMode=='table'" style="margin-top: -15px" ng-show="!loading && !editMode">
<thead>
<tr>
Expand Down Expand Up @@ -104,7 +104,7 @@
<span ng-if="(currentPage!=0) || ($index!=0 && $index!=pageSize*2/5 && $index!=pageSize*4/5)">{{bookmark.title}}</span>
</div>
</div>
<div class="ui divider"></div>
<div class="ui divider" style="width:100%;margin:14px 15px"></div>
<div class="ui grid">
<div class="five wide column" style="margin-top: 10px" ng-show="currentPage>0">
<div class="ui three column grid" style="cursor: default">
Expand Down

0 comments on commit 27f1ccd

Please sign in to comment.