N°2847 - Object details: Fix alert messages overlapping header and multicolumn layout

This commit is contained in:
Molkobain
2020-10-05 15:53:45 +02:00
parent 0691fca412
commit be075dd695
3 changed files with 10 additions and 7 deletions

View File

@@ -989,15 +989,11 @@ EOF
// TODO 2.8.0: Remove this when object details block completed, this is hardcoded for the demo
$oPage->add_style(<<<CSS
.object-details {
position: relative;
}
.object-details .ibo-title {
z-index: 1;
align-items: start;
position: absolute;
top: 0;
left: 32px;
position: relative;
padding-left: 32px;
}
.object-details .ibo-title .ibo-title--medallion {
position: absolute;
@@ -1008,7 +1004,6 @@ EOF
}
.object-details .ibo-panel {
z-index: 0;
margin-top: 48px;
}
.object-details .ibo-panel > .ibo-panel--body {
padding-top: 8px;

View File

@@ -19,4 +19,5 @@ use Combodo\iTop\Application\UI\Layout\UIContentBlock;
class Column extends UIContentBlock {
// Overloaded constants
public const BLOCK_CODE = 'ibo-column';
public const HTML_TEMPLATE_REL_PATH = 'layouts/multicolumn/column/layout';
}

View File

@@ -0,0 +1,7 @@
{# @copyright Copyright (C) 2010-2020 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
<div class="ibo-column">
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
{{ render_block(oSubBlock, {aPage: aPage}) }}
{% endfor %}
</div>