Skip to content

Commit

Permalink
Merge pull request #943 from /issues/934
Browse files Browse the repository at this point in the history
Table design breakong fixed for prizecard
  • Loading branch information
Pratap2018 authored Feb 17, 2022
2 parents 0b80d50 + 1087bd7 commit 66f1097
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions src/components/participant/ActionInputs/PrizeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
<table
v-if="prizeData.length"
class="table table-bordered"
style="background: #ffff"
style="background: #ffff
table-layout:fixed;
word-wrap:break-word;"

>
<thead class="thead-light">
<tr>
Expand All @@ -32,12 +35,14 @@
</thead>
<tbody>
<tr v-for="row in prizeData" :key="row._id">
<th>
{{ row.title }}
<th class="wrapword" >
{{row.title}}
</th>
<td>{{ JSON.parse(row.value).winners }}</td>
<td>
{{ JSON.parse(row.value).prizeValue }}
<td class="wrapword">
{{ JSON.parse(row.value).winners }}
</td>
<td class="wrapword">
{{ JSON.parse(row.value).prizeValue }}
</td>
</tr>
</tbody>
Expand All @@ -62,3 +67,15 @@ export default {
},
};
</script>
<style scoped>
.wrapword {
white-space: -moz-pre-wrap !important;
white-space: -webkit-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
white-space: normal;
}
</style>

0 comments on commit 66f1097

Please sign in to comment.