Skip to content

Commit 3971209

Browse files
author
Carlos Garcia
committed
feat: ajustar clases de Bootstrap para mejorar el espaciado en GroupItem y ListView
1 parent a3aabd3 commit 3971209

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Core/Lib/Widget/GroupItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function edit($model, bool $forceReadOnly = false, bool $onlyField = fals
103103
{
104104
$divClass = $this->numcolumns > 0 ? $this->css('col-md-') . $this->numcolumns : $this->css('col');
105105
$divId = empty($this->id) ? '' : ' id="' . $this->id . '"';
106-
$rowClass = $this->css('row g-3') . ' ' . $this->valign();
106+
$rowClass = $this->css('row g-2') . ' ' . $this->valign();
107107

108108
$html = '<div' . $divId . ' class="' . $divClass . '"><div class="' . $rowClass . '">';
109109
if ($this->title) {
@@ -143,7 +143,7 @@ public function modal($model, string $viewName): string
143143
. '</button>'
144144
. '</div>'
145145
. '<div class="modal-body">'
146-
. '<div class="' . $this->css('row') . '">';
146+
. '<div class="' . $this->css('row') . ' g-2">';
147147

148148
foreach ($this->columns as $col) {
149149
$html .= $col->edit($model);

Core/View/Master/ListView.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</div>
9797
{# -- Filters -- #}
9898
{% set divFiltersStyle = currentView.showFilters ? '' : 'display: none;' %}
99-
<div id="form{{ currentView.getViewName() }}Filters" class="row align-items-center border-bottom mb-3"
99+
<div id="form{{ currentView.getViewName() }}Filters" class="row g-2 align-items-center border-bottom mb-3"
100100
style="{{ divFiltersStyle }}">
101101
{% for filterName, filter in currentView.filters %}
102102
{{ filter.render() | raw }}

0 commit comments

Comments
 (0)