mirror of
https://github.com/motion-canvas/motion-canvas.git
synced 2026-01-11 23:07:57 -05:00
fix(ui): misaligned overlay (#127)
This commit is contained in:
@@ -190,7 +190,11 @@ export function View() {
|
||||
outlineWidth: `${1 / state.zoom}px`,
|
||||
}}
|
||||
>
|
||||
<canvas key={playerState.colorSpace} ref={viewportRef} />
|
||||
<canvas
|
||||
className={styles.preview}
|
||||
key={playerState.colorSpace}
|
||||
ref={viewportRef}
|
||||
/>
|
||||
</div>
|
||||
<Grid />
|
||||
<Debug />
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
outline: 1px solid var(--surface-color);
|
||||
}
|
||||
|
||||
.preview {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user