chore: minor trace viewer ui fixes (#21368)

This commit is contained in:
Pavel Feldman 2023-03-03 09:17:40 -08:00 committed by GitHub
parent c17eea7a3c
commit fc91e6086b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -40,6 +40,6 @@
left: 0;
background-color: white;
box-shadow: rgba(0, 0, 0, 0.133) 0px 1.6px 10px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 10px 0px;
z-index: 10;
z-index: 200;
pointer-events: none;
}

View File

@ -117,14 +117,10 @@ export const SnapshotTab: React.FunctionComponent<{
className='snapshot-tab'
tabIndex={0}
onKeyDown={event => {
if (event.key === 'ArrowRight')
setSnapshotIndex(Math.min(snapshotIndex + 1, snapshots.length - 1));
if (event.key === 'Escape') {
if (isInspecting)
setIsInspecting(false);
}
if (event.key === 'ArrowLeft')
setSnapshotIndex(Math.max(snapshotIndex - 1, 0));
}}
>
<InspectModeController