@ottocode/web-sdk 0.1.285 → 0.1.286

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21349,6 +21349,9 @@ ${file.absPath}`,
21349
21349
  import { jsx as jsx84, jsxs as jsxs72 } from "react/jsx-runtime";
21350
21350
  var INDENT_SIZE = 12;
21351
21351
  var FILE_CARET_OFFSET = 32;
21352
+ function getFileIndent(depth) {
21353
+ return depth === 0 ? 0 : FILE_CARET_OFFSET + (depth - 1) * INDENT_SIZE;
21354
+ }
21352
21355
  function createFolder(name, path) {
21353
21356
  return {
21354
21357
  type: "folder",
@@ -21518,7 +21521,7 @@ function GitFileTree({
21518
21521
  file: node.file,
21519
21522
  staged,
21520
21523
  displayPath: node.name,
21521
- indent: FILE_CARET_OFFSET + depth * INDENT_SIZE,
21524
+ indent: getFileIndent(depth),
21522
21525
  showModifiedIndicator: showModifiedIndicator?.(node.file) ?? false
21523
21526
  })
21524
21527
  }, node.path);
@@ -35405,4 +35408,4 @@ export {
35405
35408
  API_BASE_URL
35406
35409
  };
35407
35410
 
35408
- //# debugId=3732D717B148E77D64756E2164756E21
35411
+ //# debugId=402BEB9EA448ACA264756E2164756E21