fix: use position fixed for input and textarea in tableeditor

Otherwise when scrolling the table, the input will not appear at
the expected position, and may even appear outside of the view when
the table is bigger than the viewport.

Drawback: the table will resize its columns when the input/textarea
is created (as position: sticky is in the flow). So I've also removed
the width reset.

fix #2071
This commit is contained in:
Yohan Boniface 2024-08-27 12:20:08 +02:00
parent ab8bce985e
commit d208b19ddb

View file

@ -56,8 +56,6 @@
.umap-table-editor textarea, .umap-table-editor textarea,
.umap-table-editor input[type=text] { .umap-table-editor input[type=text] {
border-radius: initial; border-radius: initial;
width: initial;
position: fixed;
} }
.umap-table-editor th button { .umap-table-editor th button {
transform: rotate(90deg); transform: rotate(90deg);