Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions css/includes/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,16 @@ body pre {
}
}

.itil-object-fields .col-12.glpi-full-width {
.col-form-label {
width: 33.3333%; /* Bootstrap 5 / Tabler.io .col-xxl-4 width */
}

.field-container {
width: 66.6667%; /* Bootstrap 5 / Tabler.io .col-xxl-8 width */
}
}

// Needed as 'text-muted' may not always be readable depending on the menu
// background color.
.horizontal-layout {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/itilobject/fields_panel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{% set itil_layout = user_pref('itil_layout', true) %}
{% set headers_states = itil_layout['items']|default([]) %}

<div class="accordion open accordion-flush" id="itil-data">
<div class="accordion open accordion-flush itil-object-fields" id="itil-data">
{% set main_show = headers_states['item-main'] is not defined or headers_states['item-main'] == "true" ? true : false %}
{{ call_plugin_hook(constant('Glpi\\Plugin\\Hooks::PRE_ITIL_INFO_SECTION'), {"item": item, 'options': params}) }}
<section class="accordion-item" aria-label="{{ item.getTypeName(1) }}">
Expand Down
Loading