Skip to content

Commit

Permalink
Minor layout adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Oct 15, 2023
1 parent 0607664 commit 9635cd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/demo/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ div#nav-tree {
background-color: var(--bg-color-dimmed);
/* background-color: transparent; */
overflow: hidden; /* keep background color outside round borders */
border: none;
}

/* Show tree skeleton while initializing. */
Expand Down
5 changes: 2 additions & 3 deletions src/wb_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1576,13 +1576,12 @@ export class WunderbaumNode {
const checkbox = this.getOption("checkbox");
const columns = tree.columns;
const level = this.getLevel();
const activeColIdx = tree.isRowNav() ? null : tree.activeColIdx;

let elem: HTMLElement;
let rowDiv = this._rowElem;
// let titleSpan: HTMLElement;
let checkboxSpan: HTMLElement | null = null;
// let iconSpan: HTMLElement | null;
let expanderSpan: HTMLElement | null = null;
const activeColIdx = tree.isRowNav() ? null : tree.activeColIdx;

const isNew = !rowDiv;
util.assert(isNew);
Expand Down
2 changes: 1 addition & 1 deletion src/wunderbaum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ export class Wunderbaum {
const defaultMinWidth = 4;
const vpWidth = this.element.clientWidth;
// Shorten last column width to avoid h-scrollbar
const FIX_ADJUST_LAST_COL = 2;
const FIX_ADJUST_LAST_COL = 0; // 2;
const columns = this.columns;
const col0 = columns[0];

Expand Down

0 comments on commit 9635cd8

Please sign in to comment.