8000 bug #47731 [WebProfiler] Fix overflow issue in Forms panel (zolikonta) · enumag/symfony@289d6b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 289d6b4

Browse files
committed
bug symfony#47731 [WebProfiler] Fix overflow issue in Forms panel (zolikonta)
This PR was merged into the 4.4 branch. Discussion ---------- [WebProfiler] Fix overflow issue in Forms panel | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | no Fix overflow issue in WebProfiler Forms panel Hides overflowing content in the tree view and adds ellipsis to the end. Also adds title attribute with the field names so they get shown fully on hover. Before: ![Screenshot 2022-09-29 at 15-49-43 Symfony Profiler](https://user-images.githubusercontent.com/16335756/193056904-d1191aeb-7a13-46d9-87d6-3a9ee2746a07.png) After: ![Screenshot 2022-09-29 at 15-49-44 Symfony Profiler](https://user-images.githubusercontent.com/16335756/193056898-cae76da1-8fc3-4610-9636-0840390105e4.png) You might want to consider widening `#tree-menu` especially in `width-full`. This PR applies to 4.4 and 5.4 branch as well not sure about 6.2 though I noticed a redesign but haven't got the chance to check it out. Thank you Commits ------- 14712aa fix overflow issue in WebPprofiler Forms panel
2 parents a91e213 + 14712aa commit 289d6b4

File tree

1 file changed

+3
-2
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+3
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
cursor: pointer;
9191
padding: 5px 7px 5px 22px;
9292
position: relative;
93-
93+
overflow: hidden;
94+
text-overflow: ellipsis;
9495
}
9596
.tree .toggle-button {
9697
/* provide a bigger clickable area than just 10x10px */
@@ -449,7 +450,7 @@
449450
{% import _self as tree %}
450451
{% set has_error = data.errors is defined and data.errors|length > 0 %}
451452
<li>
452-
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
453+
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details" title="{{ name|default('(no name)') }}">
453454
{% if has_error %}
454455
<div class="badge-error">{{ data.errors|length }}</div>
455456
{% endif %}

0 commit comments

Comments
 (0)
0