Skip to content

Commit 650f534

Browse files
author
Francisco Aranda
committed
fix(ui): disable record scroll for token class since hide entities selector in annotation mode
1 parent 83aff11 commit 650f534

File tree

1 file changed

+19
-24
lines changed

1 file changed

+19
-24
lines changed

frontend/components/token-classifier/RecordTokenClassification.vue

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
<template>
22
<div class="record">
33
<span class="record__scroll__container">
4-
<span
5-
:class="[
6-
'record__scroll--large',
7-
!allowScroll ? 'record__scroll--prevent' : '',
8-
]"
9-
>
4+
<span :class="[!allowScroll ? 'record__scroll--prevent' : '']">
105
<re-button
116
v-if="scrollHeight >= 800"
127
:title="allowScroll ? 'prevent scroll' : 'allow scroll'"
@@ -19,25 +14,25 @@
1914
height="14"
2015
></svgicon>
2116
</re-button>
22-
<div ref="list" v-if="textSpans.length">
23-
<TextSpan
24-
v-for="(token, i) in textSpans"
25-
:key="i"
26-
:record="record"
27-
:span-id="i"
28-
:spans="textSpans"
29-
:dataset="dataset"
30-
:class="isSelected(i) ? 'selected' : ''"
31-
@startSelection="onStartSelection"
32-
@endSelection="onEndSelection"
33-
@selectEntity="onSelectEntity"
34-
@changeEntityLabel="onChangeEntityLabel"
35-
@removeEntity="onRemoveEntity"
36-
@reset="onReset"
37-
/>
38-
</div>
17+
<div v-if="textSpans.length" ref="list">
18+
<TextSpan
19+
v-for="(token, i) in textSpans"
20+
:key="i"
21+
:record="record"
22+
:span-id="i"
23+
:spans="textSpans"
24+
:dataset="dataset"
25+
:class="isSelected(i) ? 'selected' : ''"
26+
@startSelection="onStartSelection"
27+
@endSelection="onEndSelection"
28+
@selectEntity="onSelectEntity"
29+
@changeEntityLabel="onChangeEntityLabel"
30+
@removeEntity="onRemoveEntity"
31+
@reset="onReset"
32+
/>
33+
</div>
3934
</span>
40-
<RecordExtraActions
35+
<RecordExtraActions
4136
:allow-change-status="annotationEnabled"
4237
:record="record"
4338
@onChangeRecordStatus="onChangeRecordStatus"

0 commit comments

Comments
 (0)