Browse Source

Add pre-wrap class to classification page, resolve #1290

pull/1325/head
Hironsan 3 years ago
parent
commit
bd411327e2
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 v-slot:content>
<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>
<seq2seq-box
:text="doc.text"
@ -149,3 +149,9 @@ export default {
}
}
</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-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>
</template>
<template v-slot:sidebar>
@ -190,3 +190,9 @@ export default {
}
}
</script>
<style scoped>
.text-pre-wrap {
white-space: pre-wrap !important;
}
</style>
Loading…
Cancel
Save