Browse Source

Merge pull request #47 from BrambleXu/master

iss27 & iss43: update css class name for different tasks
pull/52/head
Hiroki Nakayama 5 years ago
committed by GitHub
parent
commit
3a867f36b5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions
  1. 2
      app/server/static/bundle/sequence_labeling.js
  2. 6
      app/server/static/css/annotation.css
  3. 2
      app/server/static/js/sequence_labeling.js

2
app/server/static/bundle/sequence_labeling.js
File diff suppressed because it is too large
View File

6
app/server/static/css/annotation.css

@ -147,11 +147,11 @@ body {
}
.content .text {
white-space: pre-wrap;
white-space: pre-wrap; /* Rendering newlines for classification and seq2seq tasks */
}
.content .tagged-text {
white-space: unset;
.content .text-sequence {
white-space: normal; /* Not render newlines for sequence labelling */
height: auto;
}

2
app/server/static/js/sequence_labeling.js

@ -8,7 +8,7 @@ Vue.use(require('vue-shortkey'), {
Vue.component('annotator', {
template: '<div @click="setSelectedRange">\
<span class="tagged-text"\
<span class="text-sequence"\
v-for="r in chunks"\
v-if="id2label[r.label]"\
v-bind:class="{tag: id2label[r.label].text_color}"\

Loading…
Cancel
Save