Merge pull request #16737 from calixteman/insets

[Editor] Use inset instead of top/left in css
This commit is contained in:
calixteman 2023-07-25 15:17:29 +02:00 committed by GitHub
commit 86165a7ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,7 @@
.annotationEditorLayer { .annotationEditorLayer {
background: transparent; background: transparent;
position: absolute; position: absolute;
top: 0; inset: 0;
left: 0;
font-size: calc(100px * var(--scale-factor)); font-size: calc(100px * var(--scale-factor));
transform-origin: 0 0; transform-origin: 0 0;
cursor: auto; cursor: auto;
@ -111,8 +110,7 @@
.annotationEditorLayer .freeTextEditor .internal { .annotationEditorLayer .freeTextEditor .internal {
background: transparent; background: transparent;
border: none; border: none;
top: 0; inset: 0;
left: 0;
overflow: visible; overflow: visible;
white-space: nowrap; white-space: nowrap;
font: 10px sans-serif; font: 10px sans-serif;
@ -124,8 +122,7 @@
position: absolute; position: absolute;
display: none; display: none;
background: transparent; background: transparent;
top: 0; inset: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
@ -160,8 +157,7 @@
.annotationEditorLayer .inkEditor .inkEditorCanvas { .annotationEditorLayer .inkEditor .inkEditorCanvas {
position: absolute; position: absolute;
top: 0; inset: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
touch-action: none; touch-action: none;