From 27d4f0b24d0429ae7569cbc837e1bd3d1d895750 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 2 Jun 2019 10:40:10 -0700 Subject: [PATCH] Fixed box drawing chars comment --- src/devtools/views/Components/Tree.js | 48 +++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/devtools/views/Components/Tree.js b/src/devtools/views/Components/Tree.js index a13d13e740..01fa9be260 100644 --- a/src/devtools/views/Components/Tree.js +++ b/src/devtools/views/Components/Tree.js @@ -325,39 +325,39 @@ export default function Tree(props: Props) { // Indentation size can be adjusted but child width is fixed. // We need to adjust indentations so the widest child can fit without overflowing. // Sometimes the widest child is also the deepest in the tree: -// ┏━━━━━━━━━━━━┓ -// ┃ ┃ -// ┃ •••• ┃ -// ┃ •••••••• ┃ -// ┗━━━━━━━━━━━━┛ +// ┏----------------------┓ +// ┆ ┆ +// ┆ •••• ┆ +// ┆ •••••••• ┆ +// ┗----------------------┛ // // But this is not always the case. // Even with the above example, a change in indentation may change the overall widest child: -// ┏━━━━━━━━━━━━┓ -// ┃ ┃ -// ┃ •• ┃ -// ┃ •••• ┃ -// ┗━━━━━━━━━━━━┛ +// ┏----------------------┓ +// ┆ ┆ +// ┆ •• ┆ +// ┆ •••• ┆ +// ┗----------------------┛ // // In extreme cases this difference can be important: -// ┏━━━━━━━━━━━━┓ -// ┃ ┃ -// ┃ •• ┃ -// ┃ •••• ┃ -// ┃ •••••• ┃ -// ┃ •••••••• ┃ -// ┗━━━━━━━━━━━━┛ +// ┏----------------------┓ +// ┆ ┆ +// ┆ •• ┆ +// ┆ •••• ┆ +// ┆ •••••• ┆ +// ┆ •••••••• ┆ +// ┗----------------------┛ // // In the above example, the current indentation is fine, // but if we naively assumed that the widest element is also the deepest element, // we would end up compressing the indentation unnecessarily: -// ┏━━━━━━━━━━━━┓ -// ┃ ┃ -// ┃ • ┃ -// ┃ •• ┃ -// ┃ ••• ┃ -// ┃ •••• ┃ -// ┗━━━━━━━━━━━━┛ +// ┏----------------------┓ +// ┆ ┆ +// ┆ • ┆ +// ┆ •• ┆ +// ┆ ••• ┆ +// ┆ •••• ┆ +// ┗----------------------┛ // // The way we deal with this is to compute the max indentation size that can fit each child, // given the child's fixed width and depth within the tree.