Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#1367): remove record text from metadata modal #1385

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 0 additions & 35 deletions frontend/components/commons/results/Metadata.vue
Original file line number Diff line number Diff line change
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