Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO-9245 DataGrid: Fix width and positioning for table buttons #118

Merged
merged 1 commit into from
Dec 11, 2024
Merged
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
8 changes: 4 additions & 4 deletions src/templates/bootstrap4/datagrid/form.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
{% } %}
<tr ref="{{ctx.datagridKey}}-row">
{% if (ctx.component.reorder) { %}
<td class="col-1">
<button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="{{ctx.datagridKey}}"></button>
<td>
<button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="{{ctx.datagridKey}}" style="display: block; margin: 0 auto"></button>
</td>
{% } %}
{% ctx.columns.forEach(function(col) { %}
Expand All @@ -49,8 +49,8 @@
{% }) %}
{% if (ctx.hasExtraColumn) { %}
{% if (ctx.hasRemoveButtons) { %}
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="{{ctx.datagridKey}}-removeRow" tabindex="{{ctx.tabIndex}}" aria-label="{{ctx.t('remove')}}">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="{{ctx.datagridKey}}-removeRow" tabindex="{{ctx.tabIndex}}" aria-label="{{ctx.t('remove')}}" style="display: block; margin: 0 auto">
<i class="{{ctx.iconClass('remove-circle')}}"></i>
</button>
</td>
Expand Down
8 changes: 4 additions & 4 deletions src/templates/bootstrap5/datagrid/form.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
{% } %}
<tr ref="{{ctx.datagridKey}}-row">
{% if (ctx.component.reorder) { %}
<td class="col-1">
<button type="button" class="formio-drag-button btn btn-default bi bi-list" data-key="{{ctx.datagridKey}}"></button>
<td>
<button type="button" class="formio-drag-button btn btn-default bi bi-list" data-key="{{ctx.datagridKey}}" style="display: block; margin: 0 auto"></button>
</td>
{% } %}
{% ctx.columns.forEach(function(col) { %}
Expand All @@ -49,8 +49,8 @@
{% }) %}
{% if (ctx.hasExtraColumn) { %}
{% if (ctx.hasRemoveButtons) { %}
<td class="col-1">
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="{{ctx.datagridKey}}-removeRow" tabindex="{{ctx.tabIndex}}" aria-label="{{ctx.t('remove')}}">
<td>
<button type="button" class="btn btn-secondary formio-button-remove-row" ref="{{ctx.datagridKey}}-removeRow" tabindex="{{ctx.tabIndex}}" aria-label="{{ctx.t('remove')}}" style="display: block; margin: 0 auto">
<i class="{{ctx.iconClass('remove-circle')}}"></i>
</button>
</td>
Expand Down
Loading