From ed0465c1be5f9f03e0497949f238c99dee8813c5 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 16 Dec 2016 16:14:24 +0200 Subject: [PATCH] fix sort icon if part or chapter --- app/components/BookBuilder/Chapter.jsx | 2 +- app/components/BookBuilder/styles/bookBuilder.local.scss | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/BookBuilder/Chapter.jsx b/app/components/BookBuilder/Chapter.jsx index 636c9d5..91d47a3 100644 --- a/app/components/BookBuilder/Chapter.jsx +++ b/app/components/BookBuilder/Chapter.jsx @@ -92,7 +92,7 @@ export class Chapter extends React.Component { style={listItemStyle} > - <div className={styles.grabIcon + ' ' + (chapter.division === 'body' ? styles.grabIconBody : '')}> + <div className={styles.grabIcon + ' ' + (chapter.subCategory === 'part' ? styles.grabIconPart : '')}> <i className='fa fa-circle' /> <div className={styles.tooltip}> Grab to sort diff --git a/app/components/BookBuilder/styles/bookBuilder.local.scss b/app/components/BookBuilder/styles/bookBuilder.local.scss index 59fd61f..a0c6256 100644 --- a/app/components/BookBuilder/styles/bookBuilder.local.scss +++ b/app/components/BookBuilder/styles/bookBuilder.local.scss @@ -188,11 +188,10 @@ $white: #fff; cursor: move; float: left; position: relative; - top: 6px; width: 3%; } - .grabIconBody { + .grabIconPart { position: relative; bottom: 5px; top: 0; -- GitLab