feat: make "Protected" flag more subtle
This commit is contained in:
@@ -143,7 +143,9 @@
|
|||||||
.default-preview(
|
.default-preview(
|
||||||
ng-show='!note.preview_html && !note.preview_plain'
|
ng-show='!note.preview_html && !note.preview_plain'
|
||||||
) {{note.text}}
|
) {{note.text}}
|
||||||
.date.faded(ng-show='!self.state.hideDate')
|
.bottom-info.faded(ng-show='!self.state.hideDate || note.protected')
|
||||||
|
span(ng-if="note.protected")
|
||||||
|
| Protected •{{self.state.hideDate ? '' : ' '}}
|
||||||
span(ng-show="self.state.sortBy == 'userModifiedDate'")
|
span(ng-show="self.state.sortBy == 'userModifiedDate'")
|
||||||
| Modified {{note.updatedAtString || 'Now'}}
|
| Modified {{note.updatedAtString || 'Now'}}
|
||||||
span(ng-show="self.state.sortBy != 'userModifiedDate'")
|
span(ng-show="self.state.sortBy != 'userModifiedDate'")
|
||||||
|
|||||||
@@ -576,12 +576,6 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesState> {
|
|||||||
class: 'warning'
|
class: 'warning'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (note.protected) {
|
|
||||||
flags.push({
|
|
||||||
text: "Protected",
|
|
||||||
class: 'success'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (note.locked) {
|
if (note.locked) {
|
||||||
flags.push({
|
flags.push({
|
||||||
text: "Locked",
|
text: "Locked",
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .date {
|
> .bottom-info {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user