Skip to content

Commit

Permalink
Merge pull request #4885 from 3liz/backport-4884-to-release_3_8
Browse files Browse the repository at this point in the history
[Backport release_3_8] lizmap-features-table - improve popup table style
  • Loading branch information
rldhont authored Oct 17, 2024
2 parents eb092b7 + 3272f73 commit 244a0f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/src/components/FeaturesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ export default class FeaturesTable extends HTMLElement {
this.uniqueField,
event.target.parentElement.parentElement.querySelector('div.lizmap-features-table-item-popup'),
function(aLayerId, aFeature, aTarget) {
// Add bootstrap classes to the popup tables
const popupTable = aTarget.querySelector('table.lizmapPopupTable');
if (popupTable) {
popupTable.classList.add('table', 'table-condensed', 'table-sm', 'table-bordered', 'table-striped');
}

// Show popup and hide other children
const featuresTableDiv = aTarget.parentElement;
if (featuresTableDiv) {
Expand Down

0 comments on commit 244a0f9

Please sign in to comment.