From 5ed5950ed5d772e418e68c0b773718ff90e7fb79 Mon Sep 17 00:00:00 2001 From: Kazu Yokomizo Date: Mon, 12 Mar 2018 22:14:06 +0900 Subject: [PATCH] Fix note list UI --- browser/components/NoteItem.js | 2 +- browser/components/NoteItem.styl | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/browser/components/NoteItem.js b/browser/components/NoteItem.js index 2013cfa0..d5d3d549 100644 --- a/browser/components/NoteItem.js +++ b/browser/components/NoteItem.js @@ -100,7 +100,7 @@ const NoteItem = ({ {note.isStarred ? : '' } - {note.isPinned && !pathname.match(/\/home|\/starred|\/trash/) + {note.isPinned && !pathname.match(/\/starred|\/trash/) ? : '' } {note.type === 'MARKDOWN_NOTE' diff --git a/browser/components/NoteItem.styl b/browser/components/NoteItem.styl index 5203ccea..4067a6cd 100644 --- a/browser/components/NoteItem.styl +++ b/browser/components/NoteItem.styl @@ -144,18 +144,18 @@ $control-height = 30px padding-bottom 2px .item-star - position relative - width 16px - height 16px + position absolute + right 2px + top 5px color alpha($ui-favorite-star-button-color, 60%) font-size 12px padding 0 border-radius 17px .item-pin - position relative - width 34px - height 34px + position absolute + right 25px + top 7px color #E54D42 font-size 14px padding 0