Add wrap styling to image column (#9257)

* add wrap styling to image column

* add Image formatter and  apply styling

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
This commit is contained in:
momesgin 2023-07-10 21:48:41 -07:00 committed by GitHub
parent a77323ff5f
commit afa9c06d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 5 deletions

View File

@ -0,0 +1,23 @@
<script>
export default {
props:
{
value: {
type: String,
default: ''
}
}
};
</script>
<template>
<span class="formatter-image">
{{ value }}
</span>
</template>
<style scoped>
.formatter-image {
word-break: break-all;
}
</style>

View File

@ -55,7 +55,7 @@ export default {
</script>
<template>
<span>
<span class="formatter-pod-images">
<span>{{ mainImage }}</span><br>
<span
v-if="images.length-1>0"
@ -64,3 +64,9 @@ export default {
>{{ t('generic.plusMore', {n:images.length-1}) }}</span>
</span>
</template>
<style scoped>
.formatter-pod-images {
word-break: break-all;
}
</style>

View File

@ -269,6 +269,7 @@ export const IMAGE = {
labelKey: 'tableHeaders.image',
value: 'image',
sort: ['image', 'nameSort'],
formatter: 'Image',
};
export const POD_IMAGES = {