Skip to content

Commit

Permalink
Add icon to show if bookmark archived and public
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Aug 12, 2019
1 parent 2cb95c1 commit 326f04d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion internal/view/css/bookmark-item.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions internal/view/js/component/bookmark.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
var template = `
<div class="bookmark" :class="{list: listMode, selected: selected, public: public >= 1}">
<div class="bookmark" :class="{list: listMode, selected: selected}">
<a class="bookmark-selector"
v-if="editMode"
@click="selectBookmark">
</a>
<a class="bookmark-link" :href="mainURL" target="_blank" rel="noopener">
<span class="thumbnail" v-if="imageURL" :style="thumbnailStyleURL"></span>
<p class="title">{{title}}</p>
<p class="title">{{title}}
<i v-if="hasContent" class="fas fa-file-alt"></i>
<i v-if="hasArchive" class="fas fa-archive"></i>
<i v-if="public" class="fas fa-eye"></i>
</p>
<p class="excerpt" v-if="!imageURL">{{excerpt}}</p>
<p class="id" v-show="showId">{{id}}</p>
</a>
Expand Down
16 changes: 6 additions & 10 deletions internal/view/less/bookmark-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
background-color: var(--selectedBg);
}

&.public .title::after {
content: "\f06e";
width: 1.25em;
text-align: center;
font-weight: 900;
font-family: "Font Awesome 5 Free";
margin-left: 8px;
font-size: 14px;
}

.bookmark-selector {
position: absolute;
top: 0;
Expand Down Expand Up @@ -90,6 +80,12 @@
&:first-child {
margin-top: 16px;
}

i {
color: var(--colorLink);
margin-left: 4px;
font-size: 14px;
}
}

.excerpt {
Expand Down
Loading

0 comments on commit 326f04d

Please sign in to comment.