Skip to content
Snippets Groups Projects
Commit bd259927 authored by Sascha Eggenberger's avatar Sascha Eggenberger
Browse files

Issue #3124448 by saschaeggi, bgebistorf: Twig error on webform configuration page

parent 74a3cbf5
No related branches found
Tags 8.x-3.0-alpha6
No related merge requests found
This diff is collapsed.
......@@ -25,15 +25,15 @@
}
&__item {
&:first-of-type {
text-align: right;
a {
width: auto;
display: inline-block;
vertical-align: top;
}
}
// &:first-of-type {
// text-align: right;
// a {
// width: auto;
// display: inline-block;
// vertical-align: top;
// }
// }
&:first-of-type ~ .dropbutton__item {
background-color: var(--colorGinBackground);
......
......@@ -194,3 +194,7 @@
vertical-align: text-top;
background: none;
}
.js .form-autocomplete {
padding-right: 36px;
}
......@@ -61,12 +61,21 @@
<thead>
<tr>
{% for cell in header %}
{%
set cell_classes = [
'th__' ~ cell.content|clean_class,
cell.active_table_sort ? 'is-active',
]
%}
{% if '<a' in cell.content|render|render %}
{%
set cell_classes = [
'th__item',
cell.active_table_sort ? 'is-active',
]
%}
{% else %}
{%
set cell_classes = [
'th__' ~ cell.content|render|clean_class,
cell.active_table_sort ? 'is-active',
]
%}
{% endif %}
<{{ cell.tag }}{{ cell.attributes.addClass(cell_classes) }}>
{{- cell.content -}}
</{{ cell.tag }}>
......@@ -90,7 +99,11 @@
{% for value in header %}
{% if loop.index == currentIndex %}
{% set theadValue = value.content|clean_class %}
{% if '<a' in value.content|render|render %}
{% set theadValue = 'td__item' %}
{% else %}
{% set theadValue = value.content|render|clean_class %}
{% endif %}
{% endif %}
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment