mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
chore: minor trace viewer ui fixes (#21368)
This commit is contained in:
parent
c17eea7a3c
commit
fc91e6086b
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user