HandsontableModal.module.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .grw-handsontable :global {
  2. .handsontable {
  3. position: relative;
  4. .handsontableInput {
  5. max-width: 290px !important;
  6. }
  7. td {
  8. word-break: break-all;
  9. }
  10. th {
  11. text-align: inherit;
  12. }
  13. }
  14. // expand .hot-table-container (with flexbox)
  15. .grw-modal-expanded {
  16. .hot-table-container {
  17. flex: 1;
  18. }
  19. }
  20. // Prevent handsontable/handsontable #2937 (Manual column resize does not work when handsontable is loaded inside Bootstrap 3.0 Modal)
  21. // see https://github.com/handsontable/handsontable/issues/2937#issuecomment-287390111
  22. // This issue fixing from Handsontable v 7.0.0
  23. // see: https://github.com/handsontable/handsontable/issues/2937#issuecomment-480824024
  24. .modal.in .modal-dialog.handsontable-modal {
  25. transform: none;
  26. .data-import-button {
  27. position: relative;
  28. padding-right: 35px;
  29. padding-left: 10px;
  30. i::before {
  31. position: absolute;
  32. top: 6px;
  33. right: 8px;
  34. font-size: 20px;
  35. }
  36. }
  37. }
  38. }