liquid_feedback_frontend

changeset 1664:fcf0bc8706f4

Format of initiative attachments
author bsw
date Mon Feb 15 14:37:18 2021 +0100 (2021-02-15)
parents 05d2f46c60c5
children 97dfef4eb2d7
files app/main/initiative/show.lua static/lf4.css
line diff
     1.1 --- a/app/main/initiative/show.lua	Mon Feb 15 14:20:07 2021 +0100
     1.2 +++ b/app/main/initiative/show.lua	Mon Feb 15 14:37:18 2021 +0100
     1.3 @@ -160,7 +160,7 @@
     1.4  
     1.5          if #files > 0 then
     1.6            ui.container {
     1.7 -            attr = { class = "mdl-card__content mdl-card--border" },
     1.8 +            attr = { class = "mdl-card__content mdl-card--border attachments" },
     1.9              content = function()
    1.10                for i, file in ipairs(files) do
    1.11                  ui.link{ module = "file", view = "show.jpg", id = file.id, content = function()
    1.12 @@ -170,7 +170,6 @@
    1.13                    ui.tag{ tag = "strong", content = file.title or "" }
    1.14                  end }
    1.15                  ui.container{ content = file.description or "" }
    1.16 -                slot.put("<br /><br />")
    1.17                end
    1.18              end
    1.19            }
     2.1 --- a/static/lf4.css	Mon Feb 15 14:20:07 2021 +0100
     2.2 +++ b/static/lf4.css	Mon Feb 15 14:37:18 2021 +0100
     2.3 @@ -605,6 +605,10 @@
     2.4    padding-right: 5px;
     2.5  }
     2.6  
     2.7 +.attachments img {
     2.8 +  max-width: 100%;
     2.9 +}
    2.10 +
    2.11  .ui_list_row label.mdl-radio {
    2.12    display: inline;
    2.13  }

Impressum / About Us