mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
chore: minor trace viewer ui fixes (#21368)
This commit is contained in:
parent
c17eea7a3c
commit
fc91e6086b
@ -40,6 +40,6 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
background-color: white;
|
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;
|
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;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -117,14 +117,10 @@ export const SnapshotTab: React.FunctionComponent<{
|
|||||||
className='snapshot-tab'
|
className='snapshot-tab'
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onKeyDown={event => {
|
onKeyDown={event => {
|
||||||
if (event.key === 'ArrowRight')
|
|
||||||
setSnapshotIndex(Math.min(snapshotIndex + 1, snapshots.length - 1));
|
|
||||||
if (event.key === 'Escape') {
|
if (event.key === 'Escape') {
|
||||||
if (isInspecting)
|
if (isInspecting)
|
||||||
setIsInspecting(false);
|
setIsInspecting(false);
|
||||||
}
|
}
|
||||||
if (event.key === 'ArrowLeft')
|
|
||||||
setSnapshotIndex(Math.max(snapshotIndex - 1, 0));
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<InspectModeController
|
<InspectModeController
|
||||||
|
Loading…
Reference in New Issue
Block a user