Skip to content

Commit 624a09f

Browse files
webmozartfabpot
authored andcommitted
Enlarged the clickable area of the toggle button in the form tree
1 parent 0ff2632 commit 624a09f

File tree

1 file changed

+20
-6
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+20
-6
lines changed

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

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,32 @@
7070
.tree a {
7171
text-decoration: none;
7272
}
73-
.tree .toggle-icon {
74-
width: 10px;
75-
height: 10px;
73+
.tree .toggle-button {
74+
/* provide a bigger clickable area than just 10x10px */
75+
width: 16px;
76+
height: 16px;
7677
/* vertically center the button */
7778
position: absolute;
7879
top: 50%;
79-
margin-top: -5px;
80-
margin-left: -15px;
80+
margin-top: -8px;
81+
margin-left: -18px;
82+
}
83+
.tree .toggle-icon {
84+
width: 10px;
85+
height: 10px;
86+
/* position the icon in the center of the clickable area */
87+
margin-left: 3px;
88+
margin-top: 3px;
8189
background-size: 10px 20px;
8290
background-color: #ccc;
8391
}
8492
.tree .toggle-icon.empty {
93+
width: 10px;
94+
height: 10px;
95+
position: absolute;
96+
top: 50%;
97+
margin-top: -5px;
98+
margin-left: -15px;
8599
background-size: 10px 10px;
86100
}
87101
.tree ul ul .tree-inner {
@@ -332,7 +346,7 @@
332346
<li>
333347
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
334348
{% if data.children is not empty %}
335-
<a class="toggle-button toggle-icon" data-toggle-target-id="{{ data.id }}-children" href="#"></a>
349+
<a class="toggle-button" data-toggle-target-id="{{ data.id }}-children" href="#"><span class="toggle-icon"></span></a>
336350
{% else %}
337351
<div class="toggle-icon empty"></div>
338352
{% endif %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy