Skip to content

Commit

Permalink
fix: use position fixed for input and textarea in tableeditor
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yohanboniface committed Aug 27, 2024
1 parent ab8bce9 commit 7aecce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions umap/static/umap/css/tableeditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
.umap-table-editor textarea,
.umap-table-editor input[type=text] {
border-radius: initial;
width: initial;
position: fixed;
position: sticky;
}
.umap-table-editor th button {
transform: rotate(90deg);
Expand Down

0 comments on commit 7aecce1

Please sign in to comment.