mirror of https://github.com/rancher/dashboard.git
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:
parent
a77323ff5f
commit
afa9c06d5c
|
|
@ -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>
|
||||||
|
|
@ -55,7 +55,7 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span class="formatter-pod-images">
|
||||||
<span>{{ mainImage }}</span><br>
|
<span>{{ mainImage }}</span><br>
|
||||||
<span
|
<span
|
||||||
v-if="images.length-1>0"
|
v-if="images.length-1>0"
|
||||||
|
|
@ -64,3 +64,9 @@ export default {
|
||||||
>{{ t('generic.plusMore', {n:images.length-1}) }}</span>
|
>{{ t('generic.plusMore', {n:images.length-1}) }}</span>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.formatter-pod-images {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -265,10 +265,11 @@ export const DURATION = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const IMAGE = {
|
export const IMAGE = {
|
||||||
name: 'image',
|
name: 'image',
|
||||||
labelKey: 'tableHeaders.image',
|
labelKey: 'tableHeaders.image',
|
||||||
value: 'image',
|
value: 'image',
|
||||||
sort: ['image', 'nameSort'],
|
sort: ['image', 'nameSort'],
|
||||||
|
formatter: 'Image',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const POD_IMAGES = {
|
export const POD_IMAGES = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue