Skip to content

Commit

Permalink
[Feature] Better ActionsColumnType styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Mar 16, 2023
1 parent afc2123 commit 9416d82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Resources/views/themes/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,14 @@

{% block kreyu_data_table_column_actions %}
{% for action in actions %}
{{ data_table_action(action) }}
{{ block('kreyu_data_table_column_actions_single') }}
{% endfor %}
{% endblock %}

{% block kreyu_data_table_column_actions_single %}
{{ data_table_action(action) }}
{% endblock %}

{% block kreyu_data_table_action %}
{% if block(block_name, theme) is defined %}
{{- block(block_name, theme) -}}
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/views/themes/bootstrap_5.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@
{% endwith %}
{% endblock %}

{% block kreyu_data_table_column_actions_single %}
<div class="me-1">{{ parent() }}</div>
{% endblock %}

{% block kreyu_data_table_action_link %}
{% set icon %}
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
Expand Down

0 comments on commit 9416d82

Please sign in to comment.