From 325e1e8a5ac715ad6948448809376c4d55d50ba3 Mon Sep 17 00:00:00 2001 From: Yin Zhang Date: Fri, 29 Sep 2023 14:26:19 -0700 Subject: [PATCH] Make help button in trace viewer more perceivable PiperOrigin-RevId: 569588876 --- plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html b/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html index 7d946dc6..90fbfbda 100644 --- a/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html +++ b/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html @@ -607,6 +607,15 @@ searchInput.setAttribute('style', 'padding-right:64px;width:250px;') const hitCount = document.getElementById('hitCount'); hitCount.setAttribute('style', 'width:245px;') + + // Move help button to the front of the toolbar + const helpButton = document.getElementById('view_help_button'); + helpButton.setAttribute('style', 'padding-left:5px;padding-right:5px;'); + if (helpButton.children && helpButton.children.length && helpButton.children[0].textContent) { + helpButton.children[0].textContent = 'Help'; + } + const perfettoSelector = document.getElementById("perfetto"); + Polymer.dom(this._traceViewer.leftControls).insertBefore(helpButton, perfettoSelector); }, _init: async function() {