Skip to content

Commit

Permalink
Make hit number in search input always visible
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 567733794
  • Loading branch information
zzzaries authored and copybara-github committed Sep 22, 2023
1 parent 9d3c07b commit d2260b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
return null;
}
this._init();
this._adjustUI();

window.addEventListener('load', function(e) {
element = document.getElementById('analysis');
Expand Down Expand Up @@ -575,6 +576,15 @@
}
},

// Overwrite and fine tune the inherited catapult/tracing UI
_adjustUI: function() {
// Make search hit number always visible
const searchInput = document.getElementById('filter');
searchInput.setAttribute('style', 'padding-right:64px;width:250px;')
const hitCount = document.getElementById('hitCount');
hitCount.setAttribute('style', 'width:245px;')
},

_init: async function() {
if (this._isStreaming) {
await this._loadHosts();
Expand Down

0 comments on commit d2260b7

Please sign in to comment.