Skip to content

Commit

Permalink
rebased to dev and changed child node offset
Browse files Browse the repository at this point in the history
  • Loading branch information
shresthabijay committed Apr 5, 2020
1 parent 04ef481 commit 538c3f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import globals from '../globals'
import expandContextThought from '../action-creators/expandContextThought'

// components
import { NewThoughtInstructions } from './NewThoughtInstructions.js'
import { Search } from './Search.js'
import { Subthoughts } from './Subthoughts.js'
import NewThoughtInstructions from './NewThoughtInstructions.js'
import Search from './Search.js'
import Subthoughts from './Subthoughts.js'

// constants
import {
Expand Down
4 changes: 2 additions & 2 deletions src/components/FlatTreeRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const FlatTreeRenderer = ({ cursor }) => {
*/
const key = `${contextOf(node.path).value}-${node.value}-${node.path.length}`

const nodeLeft = `${(node.path.length - visibleDepth) * 2}rem`
const parentLeft = `${Math.max((node.path.length - visibleDepth + 1) * 2, 0)}rem`
const nodeLeft = `${(node.path.length - visibleDepth) * 1.2}rem`
const parentLeft = `${Math.max((node.path.length - visibleDepth + 1) * 1.2, 0)}rem`

/*
some children nodes on mount should animate their left position based on the direct parent current animation state
Expand Down

0 comments on commit 538c3f7

Please sign in to comment.