Merge pull request #1438 from umap-project/table-fullwidth

Always use fullwidth table editor
This commit is contained in:
Yohan Boniface 2023-11-28 08:47:06 +01:00 committed by GitHub
commit fc2b7e5d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 })