Skip to content

Commit

Permalink
Merge pull request #1811 from simon-leech/button-row-flex
Browse files Browse the repository at this point in the history
The btnRow should be set to 'flex' not 'block'
  • Loading branch information
RobAndrewHurst authored Jan 15, 2025
2 parents 07a4ff5 + 5a7e923 commit 3a3aae7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ui/Dataview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function show() {
}

//Show toolbar buttons if there are any
this.btnRow?.style.setProperty('display','block')
this.btnRow?.style.setProperty('display','flex')

this.target.style.display = 'block'
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/Tabview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function addTab(entry) {
}

//Show toolbar buttons if there are any
entry.btnRow?.style.setProperty('display', 'block')
entry.btnRow?.style.setProperty('display', 'flex')
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/ui/Dataview.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function DataviewTest(mapview) {
await codi.it('dataview btnRow should be display true when show method called', async () => {

entry.show();
codi.assertEqual(entry.btnRow.style.display, 'block', 'The dataview entry btnRow should be display block.');
codi.assertEqual(entry.btnRow.style.display, 'flex', 'The dataview entry btnRow should be display flex.');

});

Expand Down

0 comments on commit 3a3aae7

Please sign in to comment.