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'}"
|
'table-creation': column.field == 'row_creation'}"
|
||||||
@click="goToItemPage(item)">
|
@click="goToItemPage(item)">
|
||||||
|
|
||||||
<data-and-tooltip
|
<!-- <data-and-tooltip
|
||||||
v-if="column.field !== 'row_thumbnail' &&
|
v-if="column.field !== 'row_thumbnail' &&
|
||||||
column.field !== 'row_actions' &&
|
column.field !== 'row_actions' &&
|
||||||
column.field !== 'row_creation'"
|
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'">
|
<span v-if="column.field == 'row_thumbnail'">
|
||||||
<img
|
<img
|
||||||
class="table-thumb"
|
class="table-thumb"
|
||||||
|
|
|
@ -60,14 +60,27 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getIconForMimeType(mimeType) {
|
getIconForMimeType(mimeType) {
|
||||||
switch (mimeType) {
|
|
||||||
|
|
||||||
case 'application/pdf':
|
let type = mimeType.split('/');
|
||||||
return 'file-pdf';
|
|
||||||
case 'text':
|
if (type[0] == 'application' && type[1] != undefined){
|
||||||
return 'format-align-left';
|
switch (type[1]) {
|
||||||
default:
|
case 'pdf':
|
||||||
return '';
|
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