Browse Source

Merge pull request #1325 from doccano/Fix/#1290

Add pre-wrap class to classification page
pull/1331/head
Hiroki Nakayama 3 years ago
committed by GitHub
parent
commit
dddc3e066d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions
  1. 8
      frontend/pages/projects/_id/sequence-to-sequence/index.vue
  2. 8
      frontend/pages/projects/_id/text-classification/index.vue

8
frontend/pages/projects/_id/sequence-to-sequence/index.vue

@ -19,7 +19,7 @@
</template> </template>
<template v-slot:content> <template v-slot:content>
<v-card class="mb-5"> <v-card class="mb-5">
<v-card-text class="title" v-text="doc.text" />
<v-card-text class="title text-pre-wrap" v-text="doc.text" />
</v-card> </v-card>
<seq2seq-box <seq2seq-box
:text="doc.text" :text="doc.text"
@ -149,3 +149,9 @@ export default {
} }
} }
</script> </script>
<style scoped>
.text-pre-wrap {
white-space: pre-wrap !important;
}
</style>

8
frontend/pages/projects/_id/text-classification/index.vue

@ -54,7 +54,7 @@
/> />
</v-card-title> </v-card-title>
<v-divider /> <v-divider />
<v-card-text class="title highlight" v-text="doc.text" />
<v-card-text class="title highlight text-pre-wrap" v-text="doc.text" />
</v-card> </v-card>
</template> </template>
<template v-slot:sidebar> <template v-slot:sidebar>
@ -190,3 +190,9 @@ export default {
} }
} }
</script> </script>
<style scoped>
.text-pre-wrap {
white-space: pre-wrap !important;
}
</style>
Loading…
Cancel
Save