Skip to content

Commit

Permalink
Add max height to bottom analysis tab
Browse files Browse the repository at this point in the history
- fixed #analysis panel height issue (have max to be 40% of the window height)
- Adjust the width of the 2 tabs under #analysis panel: only display the detail (right side panel with links) section if it has content, up to 30% width.

PiperOrigin-RevId: 571396804
  • Loading branch information
zzzaries authored and copybara-github committed Oct 6, 2023
1 parent 785b3d7 commit 94e7774
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
#event-details {
float: right;
display: flex;
min-width: 30%;
/* only display detail panel if content exists, up to 30% width */
width: fit-content;
max-width: 30%;
background-color: #ececec;
}

Expand Down Expand Up @@ -99,6 +101,8 @@
flex-flow: row nowrap;
/* make vertical drag handle and the tabs covering the whole content height */
height: fit-content;
/* won't cover the whole window with super long content */
max-height: 40%;
}

#eventSummaryTable table.tr-ui-b-table {
Expand Down

0 comments on commit 94e7774

Please sign in to comment.