Skip to content

Commit 7292e1a

Browse files
committed
minor #2836 [Site] Trim Icon's DataList's <dd> to get a better copy value (CyrilKrylatov)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Trim Icon's DataList's `<dd>` to get a better copy value | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #2831 | License | MIT On Icon's modal, there is a space at the end of DD's HTML element: ![image](https://github.com/user-attachments/assets/e17bda6f-3880-4de0-bc68-6e3c3d06e31d) So when double-click on it and copy it, we'll copy this space as well. This PR fixes that space. Before: ![image](https://github.com/user-attachments/assets/271f16aa-d436-4a50-b66f-51ce7848805b) After: ![image](https://github.com/user-attachments/assets/36c9a507-ca5c-43df-8ec2-ec68649ce18b) Commits ------- b00b88f [Icons] Trim DataList's dd to get a better copy value
2 parents 9d7ec20 + b00b88f commit 7292e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ux.symfony.com/templates/components/DataList.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<dd>
99
{%- if value.href|default %}
1010
<a href="{{ value.href }}">{{ value.title }}</a>
11-
{% else %}
11+
{% else -%}
1212
{{ value.title ?? value }}
13-
{% endif -%}
13+
{%- endif -%}
1414
</dd>
1515
</div>
1616
{% endif %}

0 commit comments

Comments
 (0)