Fix EntryItem border on heading mode (#661)

This commit is contained in:
M. Mert Yıldıran 2022-01-18 17:37:58 +03:00 committed by GitHub
parent 6235217ead
commit acf3894824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ export const EntryItem: React.FC<EntryProps> = ({entry, style, headingMode}) =>
setFocusedEntryId(entry.id.toString()); setFocusedEntryId(entry.id.toString());
}} }}
style={{ style={{
border: isSelected ? `1px ${entry.proto.backgroundColor} solid` : "1px transparent solid", border: isSelected && !headingMode ? `1px ${entry.proto.backgroundColor} solid` : "1px transparent solid",
position: !headingMode ? "absolute" : "unset", position: !headingMode ? "absolute" : "unset",
top: style['top'], top: style['top'],
marginTop: !headingMode ? style['marginTop'] : "10px", marginTop: !headingMode ? style['marginTop'] : "10px",