@@ -363,34 +363,34 @@ const elementKeyDarkMode = css({
363363 color : palette . gray . light2 ,
364364} ) ;
365365
366- const calculateElementSpacerWidth = ( editable : boolean , level : number ) => {
367- return ( editable ? spacing [ 200 ] : 0 ) + spacing [ 400 ] * level ;
366+ const calculateElementSpacerWidth = ( editing : boolean , level : number ) => {
367+ return ( editing ? spacing [ 200 ] : spacing [ 400 ] ) + spacing [ 400 ] * level ;
368368} ;
369369
370370export const calculateShowMoreToggleOffset = ( {
371- editable ,
371+ editing ,
372372 level,
373373 alignWithNestedExpandIcon,
374374} : {
375- editable : boolean ;
375+ editing : boolean ;
376376 level : number ;
377377 alignWithNestedExpandIcon : boolean ;
378378} ) => {
379379 // the base padding that we have on all elements rendered in the document
380380 const BASE_PADDING_LEFT = spacing [ 200 ] ;
381- const OFFSET_WHEN_EDITABLE = editable
381+ const OFFSET_WHEN_EDITING = editing
382382 ? // space taken by element actions
383383 spacing [ 400 ] +
384384 // space and margin taken by line number element
385385 spacing [ 400 ] +
386386 spacing [ 100 ] +
387387 // element spacer width that we render
388- calculateElementSpacerWidth ( editable , level )
388+ calculateElementSpacerWidth ( editing , level )
389389 : 0 ;
390390 const EXPAND_ICON_SIZE = spacing [ 400 ] ;
391391 return (
392392 BASE_PADDING_LEFT +
393- OFFSET_WHEN_EDITABLE +
393+ OFFSET_WHEN_EDITING +
394394 ( alignWithNestedExpandIcon ? EXPAND_ICON_SIZE : 0 )
395395 ) ;
396396} ;
@@ -445,20 +445,20 @@ export const HadronElement: React.FunctionComponent<{
445445 } , [ lineNumberSize , editingEnabled ] ) ;
446446
447447 const elementSpacerWidth = useMemo (
448- ( ) => calculateElementSpacerWidth ( editable , level ) ,
449- [ editable , level ]
448+ ( ) => calculateElementSpacerWidth ( editingEnabled , level ) ,
449+ [ editingEnabled , level ]
450450 ) ;
451451
452452 // To render the "Show more" toggle for the nested expandable elements we need
453453 // to calculate a proper offset so that it aligns with the nesting level
454454 const nestedElementsVisibilityToggleOffset = useMemo (
455455 ( ) =>
456456 calculateShowMoreToggleOffset ( {
457- editable ,
457+ editing : editingEnabled ,
458458 level,
459459 alignWithNestedExpandIcon : true ,
460460 } ) ,
461- [ editable , level ]
461+ [ editingEnabled , level ]
462462 ) ;
463463
464464 const isValid = key . valid && value . valid ;
@@ -511,7 +511,7 @@ export const HadronElement: React.FunctionComponent<{
511511 data-id = { element . uuid }
512512 { ...elementProps }
513513 >
514- { editable && (
514+ { editingEnabled && (
515515 < div className = { elementActions } >
516516 < div className = { cx ( actions , shouldShowActions && actionsVisible ) } >
517517 < EditActions
@@ -522,7 +522,7 @@ export const HadronElement: React.FunctionComponent<{
522522 </ div >
523523 </ div >
524524 ) }
525- { editable && (
525+ { editingEnabled && (
526526 < div
527527 className = { cx (
528528 elementLineNumber ,
0 commit comments