Commit 9d528662 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX(ui): correction for line breaks in flash messages

Refs: #901
parent 5fe057e4
Pipeline #9766 passed with stage
in 3 minutes and 23 seconds
<div class="message success" onclick="this.classList.add('hidden')"><?= h($message) ?></div>
<div class="flashMsgWrapper flashMsgWrapperSuccess" onclick="this.classList.add('hidden')">
<div class="message success msgOnlyBefore"></div>
<div class="message success msgNoBefore">
<?php
// autoriser uniquement les balises <br>
echo str_replace('&lt;br&gt;','<br>', h($message));
?>
</div>
</div>
......@@ -964,6 +964,31 @@ div.messagesContainer {
padding: 0;
}
.flashMsgWrapper {
display: flex;
cursor: pointer;
margin-bottom: 0.4em;
}
.flashMsgWrapperSuccess {
background: #A9EDB8;
}
.flashMsgWrapper > .msgOnlyBefore {
padding-right: 0;
margin-bottom: 0;
}
.flashMsgWrapper > .msgNoBefore {
padding-top: 0.65em;
padding-right: 0.30em;
padding-bottom: 0.65em;
padding-left: 0;
margin-bottom: 0;
line-height: initial;
}
.flashMsgWrapper > .msgNoBefore::before {
display: none;
}
div.message {
cursor: pointer;
display: block;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment