@konfuzio/document-validation-ui 0.1.55-dev.1 → 0.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/css/app.css +1 -1
  2. package/dist/index.html +1 -1
  3. package/dist/js/app.js +1 -1
  4. package/dist/js/app.js.map +1 -1
  5. package/dist/js/chunk-vendors.js +23 -66
  6. package/dist/js/chunk-vendors.js.map +1 -1
  7. package/jest.config.js +2 -22
  8. package/package.json +37 -31
  9. package/src/assets/scss/ann_set_table_options.scss +4 -4
  10. package/src/assets/scss/annotation_action_buttons.scss +7 -7
  11. package/src/assets/scss/annotation_details.scss +9 -9
  12. package/src/assets/scss/choose_label_set_modal.scss +5 -5
  13. package/src/assets/scss/document_action_bar.scss +3 -3
  14. package/src/assets/scss/document_annotations.scss +38 -40
  15. package/src/assets/scss/document_category.scss +8 -8
  16. package/src/assets/scss/document_dashboard.scss +1 -1
  17. package/src/assets/scss/document_edit.scss +28 -29
  18. package/src/assets/scss/document_error.scss +6 -6
  19. package/src/assets/scss/document_name.scss +6 -6
  20. package/src/assets/scss/document_page.scss +3 -3
  21. package/src/assets/scss/document_search_bar.scss +7 -7
  22. package/src/assets/scss/document_set_chooser.scss +3 -2
  23. package/src/assets/scss/document_thumbnails.scss +7 -7
  24. package/src/assets/scss/document_toolbar.scss +10 -10
  25. package/src/assets/scss/document_top_bar.scss +21 -10
  26. package/src/assets/scss/document_viewport_modal.scss +3 -3
  27. package/src/assets/scss/documents_list.scss +12 -11
  28. package/src/assets/scss/edit_page_thumbnail.scss +6 -6
  29. package/src/assets/scss/empty_state.scss +4 -4
  30. package/src/assets/scss/error_page.scss +2 -2
  31. package/src/assets/scss/extracting_data.scss +3 -3
  32. package/src/assets/scss/imports.scss +1 -0
  33. package/src/assets/scss/multi_ann_table_overlay.scss +3 -3
  34. package/src/assets/scss/multi_ann_table_popup.scss +1 -1
  35. package/src/assets/scss/new_annotation.scss +14 -21
  36. package/src/assets/scss/scrolling_document.scss +1 -1
  37. package/src/assets/scss/theme.scss +52 -63
  38. package/src/assets/scss/variables.scss +0 -2
  39. package/src/components/App.vue +28 -9
  40. package/src/components/DocumentAnnotations/AnnotationActionButtons.vue +5 -2
  41. package/src/components/DocumentAnnotations/AnnotationRow.vue +2 -9
  42. package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +8 -2
  43. package/src/components/DocumentAnnotations/DocumentAnnotations.vue +10 -11
  44. package/src/components/DocumentDashboard.vue +16 -11
  45. package/src/components/DocumentEdit/EditPages.vue +48 -48
  46. package/src/components/DocumentModals/DocumentErrorModal.vue +5 -0
  47. package/src/components/DocumentPage/DocumentPage.vue +15 -5
  48. package/src/components/DocumentPage/EditAnnotation.vue +23 -14
  49. package/src/components/DocumentPage/NewAnnotation.vue +27 -27
  50. package/src/components/DocumentTopBar/DocumentTopBar.vue +13 -1
  51. package/src/components/DocumentsList/DocumentsList.vue +2 -1
  52. package/src/components/ErrorMessage.vue +6 -1
  53. package/src/constants.js +7 -1
  54. package/src/i18n.js +5 -2
  55. package/src/locales/de.json +5 -2
  56. package/src/locales/en.json +5 -2
  57. package/src/locales/es.json +5 -2
  58. package/src/main.js +16 -13
  59. package/src/store/display.js +30 -33
  60. package/src/store/index.js +8 -5
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .edit-page-thumbnail {
4
4
  width: 80px;
@@ -20,27 +20,27 @@
20
20
  flex-direction: column;
21
21
  justify-content: center;
22
22
  align-items: center;
23
- border: variables.$component-border;
23
+ border: $component-border;
24
24
  border-radius: 2px;
25
25
  cursor: pointer;
26
26
  position: relative;
27
27
 
28
28
  &.visible {
29
- border: 1px solid variables.$text-color;
29
+ border: 1px solid $text-color;
30
30
  }
31
31
 
32
32
  &.selected {
33
- border: 2px solid variables.$primary;
33
+ border: 2px solid $primary;
34
34
  }
35
35
 
36
36
  .action-icon {
37
37
  position: absolute;
38
- background-color: variables.$text-color;
38
+ background-color: $text-color;
39
39
  left: 0;
40
40
  bottom: 0;
41
41
  width: 22px;
42
42
  height: 22px;
43
- color: variables.$white;
43
+ color: $white;
44
44
  display: flex;
45
45
  align-items: center;
46
46
  justify-content: center;
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .empty-container {
4
4
  width: 100%;
@@ -6,7 +6,7 @@
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  justify-content: flex-start;
9
- font-family: variables.$font-family;
9
+ font-family: $font-family;
10
10
 
11
11
  svg {
12
12
  align-self: center;
@@ -17,7 +17,7 @@
17
17
 
18
18
  .title {
19
19
  font-size: 16px;
20
- color: variables.$text;
20
+ color: $text;
21
21
  font-weight: 500;
22
22
  text-align: center;
23
23
  margin: 0;
@@ -26,7 +26,7 @@
26
26
  .description {
27
27
  font-size: 14px;
28
28
  line-height: 20px;
29
- color: variables.$text-lighter;
29
+ color: $text-lighter;
30
30
  font-weight: 400;
31
31
  text-align: center;
32
32
  }
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .error-page {
4
4
  width: 100vw;
@@ -9,6 +9,6 @@
9
9
  flex-direction: column;
10
10
  gap: 16px;
11
11
  .error-icon {
12
- color: variables.$red;
12
+ color: $red;
13
13
  }
14
14
  }
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .data-extraction-container {
4
4
  display: flex;
@@ -22,14 +22,14 @@
22
22
  font-size: 16px;
23
23
  font-weight: 500;
24
24
  line-height: 24px;
25
- color: variables.$text-color;
25
+ color: $text-color;
26
26
  margin-bottom: 3px;
27
27
  }
28
28
 
29
29
  .description {
30
30
  font-size: 14px;
31
31
  line-height: 20px;
32
- color: variables.$grey;
32
+ color: $grey;
33
33
  }
34
34
  }
35
35
  }
@@ -0,0 +1 @@
1
+ @import "./variables.scss";
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .multi-ann-table-overlay {
4
4
  position: absolute;
@@ -6,7 +6,7 @@
6
6
  height: fit-content;
7
7
  z-index: 40;
8
8
  width: 100%;
9
- background-color: variables.$background;
9
+ background-color: $background;
10
10
 
11
11
  .multi-ann-set-table {
12
12
  padding-bottom: 6px;
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .delete-action {
28
- color: variables.$red;
28
+ color: $red;
29
29
  }
30
30
  }
31
31
 
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .multi-ann-table-popup {
4
4
  position: absolute;
@@ -1,8 +1,8 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .annotation-popup {
4
4
  border-radius: 12px;
5
- background-color: variables.$text-color;
5
+ background-color: $text-color;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 8px;
@@ -10,7 +10,7 @@
10
10
  width: 205px;
11
11
  height: 192px;
12
12
  z-index: 40;
13
- color: variables.$white;
13
+ color: $white;
14
14
  padding: 8px;
15
15
  cursor: default;
16
16
 
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .popup-input {
22
- background-color: variables.$text-color;
23
- color: variables.$white;
22
+ background-color: $text-color;
23
+ color: $white;
24
24
  font-size: 14px;
25
25
  font-weight: 400;
26
26
  line-height: 20px;
@@ -28,20 +28,13 @@
28
28
  box-shadow: none;
29
29
  padding: 8px;
30
30
  border-radius: 12px;
31
- border: 1px solid variables.$grey-low-opacity;
31
+ border: 1px solid $grey-low-opacity;
32
32
  width: 100%;
33
33
  justify-content: space-between;
34
34
  position: relative;
35
35
  text-wrap: wrap;
36
36
  text-align: left;
37
37
 
38
- > span {
39
- white-space: nowrap;
40
- width: 100%;
41
- overflow: hidden;
42
- margin-right: 24px;
43
- }
44
-
45
38
  .caret-icon {
46
39
  position: absolute;
47
40
  right: 18px;
@@ -50,16 +43,16 @@
50
43
  }
51
44
 
52
45
  .not-selected {
53
- color: variables.$grey-detail;
46
+ color: $grey-detail;
54
47
  }
55
48
 
56
49
  .add-ann-set {
57
50
  &.has-border {
58
- border-top: 1px solid variables.$grey-detail;
51
+ border-top: 1px solid $grey-detail;
59
52
  }
60
53
 
61
54
  width: 100%;
62
- color: variables.$primary !important;
55
+ color: $primary !important;
63
56
  font-size: 14px;
64
57
  line-height: 24px;
65
58
  font-weight: 500;
@@ -75,11 +68,11 @@
75
68
 
76
69
  .annotation-dropdown {
77
70
  border-radius: 12px;
78
- border: 1px solid variables.$grey-low-opacity !important;
71
+ border: 1px solid $grey-low-opacity !important;
79
72
 
80
73
  .button.is-text {
81
74
  box-shadow: none !important;
82
- color: variables.$white !important;
75
+ color: $white !important;
83
76
  background-color: transparent !important;
84
77
  text-decoration: none;
85
78
  }
@@ -92,15 +85,15 @@
92
85
  gap: 2px;
93
86
 
94
87
  .button.is-text {
95
- color: variables.$white !important;
88
+ color: $white !important;
96
89
  text-decoration: none;
97
90
  }
98
91
 
99
92
  .cancel-button {
100
- color: variables.$white;
93
+ color: $white;
101
94
 
102
95
  &:hover {
103
- border: 1px solid variables.$grey-low-opacity;
96
+ border: 1px solid $grey-low-opacity;
104
97
  background: transparent;
105
98
  }
106
99
  }
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @import "./imports.scss";
2
2
 
3
3
  .scrolling-document {
4
4
  overflow: auto;
@@ -1,8 +1,6 @@
1
- @use "variables";
2
-
3
1
  @use "sass:meta";
4
2
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
5
- @include meta.load-css("variables.scss");
3
+ @import "./imports.scss";
6
4
 
7
5
  :root {
8
6
  --konfuzio-green: #41af85;
@@ -32,7 +30,8 @@
32
30
  }
33
31
 
34
32
  .dv-ui-theme {
35
- font-family: variables.$font-family;
33
+ @include meta.load-css("../../../node_modules/buefy/dist/buefy.css");
34
+ font-family: $font-family;
36
35
 
37
36
  -webkit-font-smoothing: antialiased;
38
37
  text-rendering: optimizeLegibility;
@@ -44,28 +43,28 @@
44
43
 
45
44
  h1 {
46
45
  font-size: 48px;
47
- color: variables.$text-color;
46
+ color: $text-color;
48
47
  }
49
48
  h2 {
50
49
  font-size: 24px;
51
- color: variables.$text-color;
50
+ color: $text-color;
52
51
  }
53
52
 
54
53
  a {
55
- color: variables.$primary;
54
+ color: $primary;
56
55
  }
57
56
 
58
57
  button {
59
58
  &.is-primary {
60
- background-color: variables.$primary !important;
61
- color: variables.$white !important;
59
+ background-color: $primary !important;
60
+ color: $white !important;
62
61
 
63
62
  &:hover:enabled {
64
- filter: variables.$hover-style;
63
+ filter: $hover-style;
65
64
  }
66
65
 
67
66
  &:disabled {
68
- background-color: variables.$grey;
67
+ background-color: $grey;
69
68
  }
70
69
  }
71
70
 
@@ -74,7 +73,7 @@
74
73
 
75
74
  &:focus {
76
75
  box-shadow: none;
77
- outline: 3px solid variables.$grey-dark;
76
+ outline: 3px solid $grey-dark;
78
77
  border: 2px solid;
79
78
  margin-right: 1px;
80
79
  }
@@ -85,7 +84,7 @@
85
84
  }
86
85
 
87
86
  &.edit-mode-btn[disabled] {
88
- border: 1px solid variables.$detail;
87
+ border: 1px solid $detail;
89
88
  }
90
89
 
91
90
  &[disabled] {
@@ -143,7 +142,7 @@
143
142
  .b-slider-thumb-wrapper {
144
143
  .tooltip-trigger {
145
144
  .b-slider-thumb {
146
- background-color: variables.$grey-lightest;
145
+ background-color: $grey-lightest;
147
146
  background-image: none;
148
147
  }
149
148
  }
@@ -162,7 +161,7 @@
162
161
  }
163
162
  .b-slider-track {
164
163
  cursor: col-resize;
165
- color: variables.$white;
164
+ color: $white;
166
165
  background: transparent !important;
167
166
  }
168
167
  .b-slider-fill {
@@ -195,10 +194,10 @@
195
194
 
196
195
  .carousel-arrow {
197
196
  .icon {
198
- color: variables.$primary;
197
+ color: $primary;
199
198
 
200
199
  &:hover {
201
- border: 1px solid variables.$primary;
200
+ border: 1px solid $primary;
202
201
  }
203
202
 
204
203
  svg {
@@ -217,8 +216,8 @@
217
216
  }
218
217
 
219
218
  .message-body {
220
- background-color: variables.$error-background;
221
- color: variables.$white;
219
+ background-color: $error-background;
220
+ color: $white;
222
221
  font-size: 14px;
223
222
  border: 0;
224
223
  border-radius: 0%;
@@ -321,22 +320,22 @@
321
320
  padding-right: 16px;
322
321
 
323
322
  &.is-active {
324
- background-color: variables.$primary;
323
+ background-color: $primary;
325
324
  }
326
325
 
327
326
  &.is-disabled {
328
- color: variables.$grey-blue !important;
327
+ color: $grey-blue !important;
329
328
  }
330
329
  }
331
330
 
332
331
  &.dropdown-menu-animation {
333
332
  a.navbar-item {
334
- color: variables.$text-color;
333
+ color: $text-color;
335
334
  font-size: 16px;
336
335
  line-height: 24px;
337
336
 
338
337
  &:hover {
339
- color: variables.$primary;
338
+ color: $primary;
340
339
  background: none;
341
340
  border: none;
342
341
  }
@@ -350,7 +349,7 @@
350
349
  .taginput-container {
351
350
  &.is-focused {
352
351
  box-shadow: none !important;
353
- border-color: variables.$primary !important;
352
+ border-color: $primary !important;
354
353
  }
355
354
 
356
355
  .tag {
@@ -361,7 +360,7 @@
361
360
  input {
362
361
  box-shadow: none !important;
363
362
  &:focus {
364
- border-color: variables.$primary;
363
+ border-color: $primary;
365
364
  }
366
365
  }
367
366
  .control.has-icons-left {
@@ -376,15 +375,15 @@
376
375
 
377
376
  .b-checkbox.checkbox {
378
377
  input[type="checkbox"] + .check {
379
- background-color: variables.$white;
378
+ background-color: $white;
380
379
  }
381
380
  &:hover input[type="checkbox"]:not(:disabled) + .check {
382
- border-color: variables.$primary !important;
381
+ border-color: $primary !important;
383
382
  }
384
383
 
385
384
  input[type="checkbox"]:checked + .check {
386
- border-color: variables.$primary !important;
387
- background-color: variables.$primary;
385
+ border-color: $primary !important;
386
+ background-color: $primary;
388
387
  }
389
388
  }
390
389
 
@@ -447,16 +446,16 @@
447
446
 
448
447
  &::before,
449
448
  &::after {
450
- background-color: variables.$grey;
449
+ background-color: $grey;
451
450
  }
452
451
 
453
452
  &:hover {
454
- background-color: variables.$white;
453
+ background-color: $white;
455
454
  }
456
455
  }
457
456
 
458
457
  .modal-card-body {
459
- background: variables.$white;
458
+ background: $white;
460
459
  border-radius: 16px 16px 0 0 !important;
461
460
  }
462
461
 
@@ -464,7 +463,7 @@
464
463
  display: flex;
465
464
  justify-content: center;
466
465
  border: none;
467
- background: variables.$white;
466
+ background: $white;
468
467
  border-radius: 0 0 16px 16px;
469
468
  }
470
469
  }
@@ -475,7 +474,7 @@
475
474
  }
476
475
 
477
476
  .modal-background {
478
- background-color: variables.$full-black;
477
+ background-color: $full-black;
479
478
  opacity: 0.5;
480
479
  }
481
480
 
@@ -497,7 +496,7 @@
497
496
  text-align: left;
498
497
  font-weight: 400;
499
498
  font-size: 14px;
500
- color: variables.$grey-blue;
499
+ color: $grey-blue;
501
500
  }
502
501
 
503
502
  .modal-card-foot {
@@ -548,7 +547,7 @@
548
547
 
549
548
  .notices {
550
549
  .snackbar {
551
- background-color: variables.$text-color;
550
+ background-color: $text-color;
552
551
  min-height: 40px;
553
552
 
554
553
  .text {
@@ -577,15 +576,15 @@
577
576
  align-items: center;
578
577
 
579
578
  .tooltip-content {
580
- background-color: variables.$text-color !important;
579
+ background-color: $text-color !important;
581
580
 
582
581
  a {
583
- color: variables.$white;
582
+ color: $white;
584
583
  text-decoration: underline;
585
584
  font-weight: 500;
586
585
  }
587
586
  &:before {
588
- border-bottom-color: variables.$text-color !important;
587
+ border-bottom-color: $text-color !important;
589
588
  }
590
589
  }
591
590
 
@@ -598,8 +597,8 @@
598
597
  &::before {
599
598
  left: 16px !important;
600
599
  right: auto !important;
601
- border-top-color: variables.$text-color !important;
602
- border-bottom-color: variables.$text-color !important;
600
+ border-top-color: $text-color !important;
601
+ border-bottom-color: $text-color !important;
603
602
  }
604
603
  }
605
604
  }
@@ -614,7 +613,7 @@
614
613
  &::before {
615
614
  right: 16px !important;
616
615
  left: auto !important;
617
- border-bottom-color: variables.$text-color !important;
616
+ border-bottom-color: $text-color !important;
618
617
  }
619
618
  }
620
619
 
@@ -650,12 +649,12 @@
650
649
  font-size: 14px;
651
650
  padding: 12px 12px;
652
651
  top: 45px;
653
- background-color: variables.$text-color;
652
+ background-color: $text-color;
654
653
  border-radius: 4px !important;
655
654
 
656
655
  &::before {
657
656
  top: 17px;
658
- border-left-color: variables.$text-color !important;
657
+ border-left-color: $text-color !important;
659
658
  }
660
659
  }
661
660
  }
@@ -665,7 +664,7 @@
665
664
 
666
665
  .tooltip-content {
667
666
  &::before {
668
- border-bottom-color: variables.$text-color !important;
667
+ border-bottom-color: $text-color !important;
669
668
  }
670
669
  }
671
670
  }
@@ -673,7 +672,7 @@
673
672
  &.top-aligned {
674
673
  .tooltip-content {
675
674
  &::before {
676
- border-top-color: variables.$text-color !important;
675
+ border-top-color: $text-color !important;
677
676
  }
678
677
  }
679
678
  }
@@ -741,7 +740,7 @@
741
740
 
742
741
  &.split-mode-caret {
743
742
  svg {
744
- color: variables.$grey;
743
+ color: $grey;
745
744
  }
746
745
  }
747
746
  }
@@ -751,7 +750,7 @@
751
750
  height: 10px;
752
751
 
753
752
  &.error-icon {
754
- color: variables.$white;
753
+ color: $white;
755
754
  padding-right: 20px;
756
755
  padding-left: 20px;
757
756
 
@@ -805,10 +804,10 @@
805
804
  &.dark-header {
806
805
  .table {
807
806
  thead {
808
- background-color: variables.$black !important;
807
+ background-color: $black !important;
809
808
  th {
810
809
  font-weight: 400;
811
- background-color: variables.$black !important;
810
+ background-color: $black !important;
812
811
  }
813
812
  }
814
813
  }
@@ -828,7 +827,7 @@
828
827
  }
829
828
  cursor: text;
830
829
  thead {
831
- background-color: variables.$purple !important;
830
+ background-color: $purple !important;
832
831
  th {
833
832
  font-weight: 500;
834
833
  font-size: 10px;
@@ -839,7 +838,7 @@
839
838
  margin: 0;
840
839
  }
841
840
  }
842
- background-color: variables.$purple !important;
841
+ background-color: $purple !important;
843
842
  color: white !important;
844
843
  vertical-align: middle;
845
844
  &[draggable="true"] {
@@ -881,7 +880,7 @@
881
880
  .switch {
882
881
  input[type="checkbox"] {
883
882
  &:checked + .check {
884
- background: variables.$primary !important;
883
+ background: $primary !important;
885
884
  box-shadow: none !important;
886
885
  }
887
886
 
@@ -902,14 +901,4 @@
902
901
  }
903
902
  }
904
903
  }
905
- .splitpanes--vertical > .splitpanes__splitter {
906
- background: variables.$grey-lighter-low-opacity;
907
- }
908
-
909
- .splitpanes--horizontal > .splitpanes__splitter {
910
- background: variables.$grey-lighter-low-opacity;
911
- }
912
- & {
913
- @include meta.load-css("../../../node_modules/buefy/dist/buefy.css");
914
- }
915
904
  }
@@ -65,5 +65,3 @@ $black: $dark;
65
65
  $input-shadow: none;
66
66
  $top-bar-height: 56px;
67
67
  $component-border: 1px solid $detail;
68
-
69
- $documents-list-height: 52px;
@@ -20,7 +20,6 @@ import {
20
20
  import { Integrations } from "@sentry/tracing";
21
21
  import API from "../api";
22
22
  import { initKeycloak } from "../utils/keycloak";
23
- import { debounce } from "../utils/utils";
24
23
 
25
24
  export default {
26
25
  name: "App",
@@ -154,6 +153,12 @@ export default {
154
153
  required: false,
155
154
  default: "60",
156
155
  },
156
+ // eslint-disable-next-line vue/prop-name-casing
157
+ remove_branding: {
158
+ type: String,
159
+ required: false,
160
+ default: "false",
161
+ },
157
162
  },
158
163
  computed: {
159
164
  ...mapState("display", ["pageError"]),
@@ -195,6 +200,13 @@ export default {
195
200
  return this.show_documents_navigation === "true";
196
201
  }
197
202
  },
203
+ removeBranding() {
204
+ if (process.env.VUE_APP_REMOVE_BRANDING) {
205
+ return process.env.VUE_APP_REMOVE_BRANDING === "true";
206
+ } else {
207
+ return this.remove_branding === "true";
208
+ }
209
+ },
198
210
  showMissingAnnotations() {
199
211
  if (
200
212
  window.location.hash === "#unrevised" ||
@@ -385,6 +397,7 @@ export default {
385
397
  "display/showDocumentsNavigation",
386
398
  this.showDocumentsNavigation
387
399
  ),
400
+ this.$store.dispatch("display/showBranding", !this.removeBranding),
388
401
  this.$store.dispatch(
389
402
  "document/showMissingAnnotations",
390
403
  this.showMissingAnnotations
@@ -409,14 +422,20 @@ export default {
409
422
  this.$store.dispatch("document/fetchDocument");
410
423
  });
411
424
 
412
- // Stop error resizeObserver
413
- const _ = window.ResizeObserver;
414
- window.ResizeObserver = class ResizeObserver extends _ {
415
- constructor(callback) {
416
- callback = debounce(callback, 20);
417
- super(callback);
418
- }
419
- };
425
+ // Add observer for class added to HTML tag when Buefy modals are mounted
426
+ // TODO: check defaultModalScroll property in Buefy constructor https://buefy.org/documentation/constructor-options
427
+ const htmlTag = document.documentElement;
428
+ const observer = new MutationObserver(function (mutations) {
429
+ mutations.forEach(function (mutation) {
430
+ if (mutation.attributeName === "class") {
431
+ const classToRemove = "is-clipped";
432
+ if (mutation.target.classList.contains(classToRemove)) {
433
+ htmlTag.classList.remove(classToRemove);
434
+ }
435
+ }
436
+ });
437
+ });
438
+ observer.observe(htmlTag, { attributes: true });
420
439
  },
421
440
  };
422
441
  </script>