Skip to content

Comments

[XProf: trace viewer] Always show delete button for selected time ranges#2317

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_863687203
Open

[XProf: trace viewer] Always show delete button for selected time ranges#2317
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_863687203

Conversation

@copybara-service
Copy link

[XProf: trace viewer] Always show delete button for selected time ranges

This change ensures that a delete button is always visible for selected time ranges, even when the duration text is too long to fit within the clipped view. The button is centered within the visible portion of the range if the text doesn't fit. The hover area for the delete button is also adjusted to encompass the button and, if present, the duration text. Additionally, deleting a time range now also clears it from the current_selected_time_range_ if it was the currently selected range.

This change ensures that a delete button is always visible for selected time ranges, even when the duration text is too long to fit within the clipped view. The button is centered within the visible portion of the range if the text doesn't fit. The hover area for the delete button is also adjusted to encompass the button and, if present, the duration text. Additionally, deleting a time range now also clears it from the `current_selected_time_range_` if it was the currently selected range.

PiperOrigin-RevId: 863687203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants