Temporaly removes tooltips from table, as it is causing overflow issues.
This commit is contained in:
parent
3d6b9db111
commit
ccc320f563
|
@ -93,12 +93,17 @@
|
|||
'table-creation': column.field == 'row_creation'}"
|
||||
@click="goToItemPage(item)">
|
||||
|
||||
<data-and-tooltip
|
||||
<!-- <data-and-tooltip
|
||||
v-if="column.field !== 'row_thumbnail' &&
|
||||
column.field !== 'row_actions' &&
|
||||
column.field !== 'row_creation'"
|
||||
:data="renderMetadata( item.metadata[column.slug] )"/>
|
||||
|
||||
:data="renderMetadata( item.metadata[column.slug] )"/> -->
|
||||
<p
|
||||
v-if="column.field !== 'row_thumbnail' &&
|
||||
column.field !== 'row_actions' &&
|
||||
column.field !== 'row_creation'"
|
||||
v-html="renderMetadata( item.metadata[column.slug] )"/>
|
||||
|
||||
<span v-if="column.field == 'row_thumbnail'">
|
||||
<img
|
||||
class="table-thumb"
|
||||
|
|
|
@ -60,14 +60,27 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getIconForMimeType(mimeType) {
|
||||
switch (mimeType) {
|
||||
|
||||
case 'application/pdf':
|
||||
return 'file-pdf';
|
||||
case 'text':
|
||||
return 'format-align-left';
|
||||
default:
|
||||
return '';
|
||||
let type = mimeType.split('/');
|
||||
|
||||
if (type[0] == 'application' && type[1] != undefined){
|
||||
switch (type[1]) {
|
||||
case 'pdf':
|
||||
return 'file-pdf';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
switch (type[0]) {
|
||||
case 'video':
|
||||
return 'video';
|
||||
case 'audio':
|
||||
return 'volume-high';
|
||||
case 'text':
|
||||
return 'format-align-left';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue