Skip to content

Commit 4eb7fd5

Browse files
committed
Optimized UI.
1 parent eb38780 commit 4eb7fd5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "gitbook-reader-app",
3-
"version": "0.6.2",
2+
"name": "yet-another-gitbook-reader",
3+
"version": "0.6.8",
44
"author": "xfoss.com",
55
"homepage": "https://gnu4cn.github.io/gitbook-reader/",
66
"scripts": {

src/app/home/components/book-list.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232
<!-- 操作 -->
3333
<mat-card-actions fxLayout="row" fxLayoutGap="0px">
34-
<button mat-button *ngIf="book.recordList" (click)="openReadingRecordDialog(book)">
34+
<button mat-button *ngIf="book.recordList && book.recordList.length > 0"
35+
(click)="openReadingRecordDialog(book)">
3536
<ion-icon name="list-outline"></ion-icon>阅读记录
3637
</button>
3738
<button mat-button *ngIf="book.downloaded" (click)="openReadmeDialog(book.desc)">

0 commit comments

Comments
 (0)