Skip to content

Commit

Permalink
Fix sorting behavior on enumeration page
Browse files Browse the repository at this point in the history
Sorting a list item on administration/enumerations page causes for the
tables at second and third position on the page an unexpected behavior
when trying to sort an element by drag & drop.

That is, the distance between the dragged element and its placeholder
increases that much that it was difficult to position the list item as
wished.
  • Loading branch information
liaham committed Jan 10, 2021
1 parent 58c45cf commit bf14f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sass/components/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$side-space: $sidebar-width + $padding-side * 2;
flex: 1 1 auto;
width: calc(100% - #{$side-space});
overflow-x: auto; // needed for drag & drop of enumerations
} @else {
overflow: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion stylesheets/application.css

Large diffs are not rendered by default.

0 comments on commit bf14f9f

Please sign in to comment.