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

IBX-6998: First table row has white background #982

Merged
merged 1 commit into from
Nov 9, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,24 @@

{% block table %}
{% set table_content %}
{% set empty_row %}
{% block tbody_empty %}
{% include '@ibexadesign/ui/component/table/empty_table_body_row.html.twig' with {
colspan: head_cols|length,
empty_image: empty_image|default(asset('/bundles/ibexaadminui/img/ibexa-empty-table.svg'))
} %}
{% endblock %}
{% endset %}

<table
class="ibexa-table table
{{ is_last_column_sticky ? 'ibexa-table--last-column-sticky' }}
{{ class|default('') -}}"
{{ html.attributes(attr|default({})) }}
>
<template class="ibexa-table__template--empty-row">
{{ empty_row }}
</template>
<thead {{ body_rows is defined and body_rows is not empty or head_cols is defined and show_head_cols_if_empty ? '' : 'hidden' }}>
{% block thead %}
{% if head_cols is defined %}
Expand All @@ -50,18 +62,6 @@
{{ html.attributes(table_body_attr|default({})) }}
>
{% block tbody %}
{% set empty_row %}
{% block tbody_empty %}
{% include '@ibexadesign/ui/component/table/empty_table_body_row.html.twig' with {
colspan: head_cols|length,
empty_image: empty_image|default(asset('/bundles/ibexaadminui/img/ibexa-empty-table.svg'))
} %}
{% endblock %}
{% endset %}

<template class="ibexa-table__template--empty-row">
{{ empty_row }}
</template>

{% if body_rows is defined %}
{% if body_rows is empty %}
Expand Down
Loading