heimrichhannot / contao-multi-column-editor-bundle

This module offers an input type for editing one or more records in frontend and backend.
GNU General Public License v3.0
6 stars 7 forks source link

Darstellungsmodus `Kompakt` ergänzen? #31

Closed OMOSde closed 6 months ago

OMOSde commented 7 months ago

Ich nutze das Modul sehr gerne und meist nur für wenige Datensätze. Die Darstellung im Backend mit Label und Beschreibung für jeden Datenzeile erscheint oft sehr lang.

Ich behelfe mir daher mit dem Parameter class und mache die Darstellung per CSS kompakter.

Anbei mal ein Vergleich für 4 Datenzeilen.

image image

Vielleicht wäre dies etwas für eine Integration.

Mein CSS sieht so aus:

.multi-column-editor.compact .mce-row:not(:last-of-type) .tl_help,
.multi-column-editor.compact .mce-row:not(:first-of-type) h3 {
  display: none;
}

.multi-column-editor.compact .mce-row:not(:last-of-type) .form-group {
  margin-bottom: 0.125rem;
}
.multi-column-editor.compact .mce-row:not(:first-of-type) {
  padding-top: 0.125rem;
}
koertho commented 6 months ago

Hi, find ich eine super Idee. Habe es minimal anders in Version 2.20 integriert (siehe readme). Danke dir!