Skip to content

[Bug]: Fix table stripped CSS to embed lizmap-features-table-container #5666

@vlebert

Description

@vlebert

What is the bug? (in English)

Is some case, it is convenient to ember lizmap-features-table-container inside the attribute table. This permits to keep the automatic popup layout while adding interactivity with child elements.

However, I had to do some fixtures to map.css for the table-stripped style not to mess up the lizmap-features-table-container style

Here is my quick fix, but the fix should be done properly in Lizmap basecode:

.table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th {
    background-color: inherit;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #f9f9f9;
}

Image

Steps to reproduce the issue

Add a lizmap-features-table-container in the attribute layer with automatid display for popup.

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.7 - commit bee4379 bee4379f1
  • Lizmap plugin : 4.5.0
  • QGIS Desktop : 3.34.6
  • Lizmap.com : Yes
  • QGIS Server : 3.34.14
  • Py-QGIS-Server : 1.9.5
  • QGIS Server plugin atlasprint : 3.4.2
  • QGIS Server plugin cadastre : 2.0.1
  • QGIS Server plugin lizmap_server : 2.13.0
  • QGIS Server plugin wfsOutputExtension : 1.8.3
List of Lizmap Web Client modules :
* webdav : 1.2.0 * saas : 1.7.6
List of safeguards :
* Mode : normal
* Allow parent folder : no
* Prevent other drive : yes
* Prevent PG service : no
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Lizmap Hosting

Browsers

Chrome

Browsers version

Version 1.91.2 (62278)

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions