@konfuzio/document-validation-ui 0.1.5-automatic-document-splitting → 0.1.5-automatic-document-splitting-3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.5-automatic-document-splitting",
3
+ "version": "0.1.5-automatic-document-splitting-3",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -290,10 +290,6 @@
290
290
  color: $text-color;
291
291
  }
292
292
  }
293
-
294
- // &.smart-split-disabled {
295
- // filter: opacity(0.5);
296
- // }
297
293
  }
298
294
  }
299
295
  }
@@ -14,7 +14,7 @@
14
14
  .document-top-bar {
15
15
  width: 100%;
16
16
  height: 100%;
17
- background-color: $background;
17
+ background-color: $top-bar-background;
18
18
  position: sticky;
19
19
  z-index: 39;
20
20
  display: flex;
@@ -42,12 +42,14 @@ $text-color: #1a1a1a;
42
42
  :root {
43
43
  --primary-color: #{$konfuzio-green};
44
44
  --primary-button: 4px;
45
+ --top-bar-background: #{$white};
45
46
  }
46
47
 
47
48
  $primary: var(--primary-color);
48
49
  $hover-style: brightness(0.8) contrast(160%) grayscale(0.4);
49
50
  $font-family: "Inter", sans-serif;
50
51
  $background: $white;
52
+ $top-bar-background: var(--top-bar-background);
51
53
  $toolbar: $text-color;
52
54
  $tooltip: $dark;
53
55
  $toolbar-elements: $white;
@@ -188,7 +188,7 @@ export default {
188
188
  (page) => page.id === item.pages[0].id
189
189
  );
190
190
 
191
- if (firstPage.number === 1) {
191
+ if (firstPage.number === 1 && item.pages.length > 1) {
192
192
  // only add the active splitting line from the 1st page of the second document
193
193
  // since it's the first splitting point
194
194
  return;