Skip to content

Commit

Permalink
fix(#1367): remove record text from metadata modal
Browse files Browse the repository at this point in the history
fix #1367
  • Loading branch information
leiyre committed Apr 6, 2022
1 parent 670ab7d commit bd05f5c
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions frontend/components/commons/results/Metadata.vue
Expand Up @@ -17,19 +17,6 @@

<template>
<div class="metadata">
<div v-if="typeof title === 'object'">
<p
v-for="name in title"
:key="name.index"
class="metadata__title"
:title="name"
>
<span v-if="!Array.isArray(name)">{{ name | truncate(100) }}</span>
</p>
</div>
<div v-else>
<p class="metadata__title">{{ title }}</p>
</div>
<div class="metadata__container">
<div v-for="(item, index) in formatSortedMetadataItems" :key="index">
<div class="metadata__blocks">
Expand Down Expand Up @@ -65,14 +52,6 @@

<script>
export default {
filters: {
truncate(string, value) {
if (string.length > value) {
return `${string.substring(0, value)}...`;
}
return string;
},
},
props: {
metadataItems: {
type: Object,
Expand Down Expand Up @@ -152,20 +131,6 @@ export default {
max-width: 500px;
margin: auto;
pointer-events: all;
&__title {
color: $font-dark-color;
font-weight: 600;
margin-top: 2em;
margin-right: 2em;
white-space: pre-line;
display: none;
&:first-child {
margin-top: 0;
}
&:nth-child(-n + 5) {
display: block;
}
}
&__container {
max-height: 50vh;
overflow-y: auto;
Expand Down

0 comments on commit bd05f5c

Please sign in to comment.