-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Profiler][VarDumper] Add a search feature to the HtmlDumper #21109
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
Changes from 1 commit
17130eb
83c8343
5259aa9
5018b0e
d8bc70c
97e1cba
9b57189
a162b97
0ab898e
8337ab5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -463,6 +463,7 @@ function xpathString(str) { | |
search.className = 'sf-dump-search-wrapper sf-dump-search-hidden'; | ||
search.innerHTML = ' | ||
<input type="text" class="sf-dump-search-input"> | ||
<span class="sf-dump-search-count">0 on 0<\/span> | ||
<button type="button" class="sf-dump-search-input-previous" tabindex="-1"> | ||
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M1683 1331l-166 165q-19 19-45 19t-45-19l-531-531-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z"\/> | ||
|
@@ -473,7 +474,6 @@ function xpathString(str) { | |
<path d="M1683 808l-742 741q-19 19-45 19t-45-19l-742-741q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z"\/> | ||
<\/svg> | ||
<\/button> | ||
<span class="sf-dump-search-count">0 on 0<\/span> | ||
'; | ||
root.insertBefore(search, root.firstChild); | ||
|
||
|
@@ -625,7 +625,7 @@ function xpathString(str) { | |
.sf-dump-str.sf-dump-highlight, | ||
.sf-dump-key.sf-dump-highlight { | ||
background: rgba(111, 172, 204, 0.3); | ||
border: 1px solid #7da0b1; | ||
border: 1px solid #7DA0B1; | ||
border-radius: 3px; | ||
} | ||
.sf-dump-public.sf-dump-highlight-active, | ||
|
@@ -634,46 +634,43 @@ function xpathString(str) { | |
.sf-dump-str.sf-dump-highlight-active, | ||
.sf-dump-key.sf-dump-highlight-active { | ||
background: rgba(253, 175, 0, 0.4); | ||
border: 1px solid #FFA500; | ||
border: 1px solid #ffa500; | ||
border-radius: 3px; | ||
} | ||
.sf-dump-search-hidden { | ||
display: none; | ||
} | ||
.sf-dump-search-wrapper { | ||
float: right; | ||
margin-top: -5px; | ||
margin-right: -5px; | ||
text-align: right; | ||
max-width: 100%; | ||
font-size: 0; | ||
padding: 5px; | ||
background: rgba(255, 255, 255, 0.3); | ||
border-radius: 0 0 0 3px; | ||
} | ||
.sf-dump-search-wrapper > * { | ||
vertical-align: top; | ||
box-sizing: border-box; | ||
height: 21px; | ||
font-weight: normal; | ||
border-radius: 0; | ||
background: #FFF; | ||
color: #757575; | ||
border: 1px solid #BBB; | ||
} | ||
.sf-dump-search-wrapper > input.sf-dump-search-input { | ||
color: #333; | ||
padding: 3px; | ||
height: 21px; | ||
border: 1px solid #bbb; | ||
box-sizing: border-box; | ||
font-size: 12px; | ||
border-right: none; | ||
max-width: 150px; | ||
border-top-left-radius: 3px; | ||
border-bottom-left-radius: 3px; | ||
color: #000; | ||
} | ||
.sf-dump-search-wrapper > .sf-dump-search-input-next, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. couldn't it simply be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be, but more specific selectors ensure it has priority, for instance over some more global styles defined and used by the WDT (I had some issues with that). |
||
.sf-dump-search-wrapper > .sf-dump-search-input-previous { | ||
border-radius: 0; | ||
background: white; | ||
background: #F2F2F2; | ||
outline: none; | ||
border: 1px solid #bbb; | ||
border-left: none; | ||
height: 21px; | ||
font-size: 0; | ||
color: #333; | ||
vertical-align: top; | ||
box-sizing: border-box; | ||
line-height: 0; | ||
} | ||
.sf-dump-search-wrapper > .sf-dump-search-input-next { | ||
border-top-right-radius: 3px; | ||
|
@@ -686,11 +683,12 @@ function xpathString(str) { | |
height: 12px; | ||
} | ||
.sf-dump-search-wrapper > .sf-dump-search-count { | ||
display: inline-block; | ||
padding: 0 5px; | ||
margin: 0; | ||
border-left: none; | ||
line-height: 21px; | ||
font-size: 12px; | ||
color: #FFF; | ||
font-weight: normal; | ||
margin-top: 5px; | ||
display: block; | ||
} | ||
EOHTML | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a clearfix behavior in the styles of the parent block ? If no, it does not ensure the min height
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I've added it in 9b57189. Hope that's enough.