Skip to content

Commit

Permalink
Merge pull request #1438 from umap-project/table-fullwidth
Browse files Browse the repository at this point in the history
Always use fullwidth table editor
  • Loading branch information
yohanboniface authored Nov 28, 2023
2 parents b716530 + d47c6f3 commit fc2b7e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions umap/static/umap/js/umap.tableeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,9 @@ L.U.TableEditor = L.Class.extend({
this.edit()
}
L.DomEvent.on(addButton, 'click', addProperty, this)
const className =
this.properties.length > 2
? 'umap-table-editor fullwidth dark'
: 'umap-table-editor dark'
this.datalayer.map.ui.openPanel({
data: { html: this.table },
className: className,
className: 'umap-table-editor fullwidth dark',
actions: [addButton],
})
this.datalayer.map.fire('dataload', { id: id })
Expand Down

0 comments on commit fc2b7e5

Please sign in to comment.