Skip to content

Commit

Permalink
Cards does not pidarasit (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored May 12, 2020
1 parent 1ccbaab commit 09e9592
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
24 changes: 15 additions & 9 deletions src/views/extended_search/BigMapDiffItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,22 @@
</v-list-item-action>
</v-list-item>

<div class="d-flex flex-wrap flex-row mx-6">
<div v-for="(values, key) in item.highlights" :key="key">
<div class="d-flex flex-column mr-6 pt-2 pb-4" v-if="!['key_strings'].includes(key)">
<span class="overline">{{ key }}</span>
<span v-for="(value, i) in values" :key="key + i">
<span v-html="highlight(value)" class="caption"></span>
</span>
</div>
<template v-for="(values, key) in item.highlights">
<div
:key="key"
class="d-flex flex-column mr-12 ml-6 pt-2 pb-4"
v-if="!['key_strings'].includes(key)"
>
<span class="overline">{{ key }}</span>
<span
v-for="(value, i) in values"
:key="key + i"
v-html="highlight(value)"
class="d-inline-block caption text-wrap"
style="max-width: 100%;"
></span>
</div>
</div>
</template>
</v-card>
</v-hover>
</div>
Expand Down
27 changes: 15 additions & 12 deletions src/views/extended_search/ContractItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,22 @@
</v-list-item-action>
</v-list-item>

<div class="d-flex flex-wrap flex-row mx-6">
<div v-for="(values, key) in item.highlights" :key="key">
<div
class="d-flex flex-column mr-6 pt-2 pb-4"
v-if="!['alias', 'address', 'tags', 'language'].includes(key)"
>
<span class="overline">{{ key }}</span>
<span v-for="(value, i) in values" :key="key + i">
<span v-html="highlight(value)" class="caption"></span>
</span>
</div>
<template v-for="(values, key) in item.highlights">
<div
:key="key"
class="d-flex flex-column mr-12 ml-6 pt-2 pb-4"
v-if="!['alias', 'address', 'tags', 'language'].includes(key)"
>
<span class="overline">{{ key }}</span>
<span
v-for="(value, i) in values"
:key="key + i"
v-html="highlight(value)"
class="d-inline-block caption text-wrap"
style="max-width: 100%;"
></span>
</div>
</div>
</template>
</v-card>
</v-hover>
</div>
Expand Down
30 changes: 16 additions & 14 deletions src/views/extended_search/OperationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
v-if="item.body.destination_alias"
v-html="highlight(item.body.destination_alias + ' :: ')"
></span>
<span v-if="item.body.entrypoint"
v-html="highlight(item.body.entrypoint + '()')"></span>
<span v-if="item.body.entrypoint" v-html="highlight(item.body.entrypoint + '()')"></span>
</v-list-item-title>
<v-list-item-title class="header opg_hash grey--text text--darken-2">
<span v-html="highlight(item.value)"></span>
Expand Down Expand Up @@ -70,19 +69,22 @@
</v-list-item-action>
</v-list-item>

<div class="d-flex flex-wrap flex-row mx-6">
<div v-for="(values, key) in item.highlights" :key="key">
<div
class="d-flex flex-column mr-6 pt-2 pb-4"
v-if="!['hash', 'entrypoint'].includes(key)"
>
<span class="overline">{{ key }}</span>
<span v-for="(value, i) in values" :key="key + i">
<span v-html="highlight(value)" class="caption"></span>
</span>
</div>
<template v-for="(values, key) in item.highlights">
<div
:key="key"
class="d-flex flex-column mr-12 ml-6 pt-2 pb-4"
v-if="!['hash', 'entrypoint'].includes(key)"
>
<span class="overline">{{ key }}</span>
<span
v-for="(value, i) in values"
:key="key + i"
v-html="highlight(value)"
class="d-inline-block caption text-wrap"
style="max-width: 100%;"
></span>
</div>
</div>
</template>
</v-card>
</v-hover>
</div>
Expand Down

0 comments on commit 09e9592

Please sign in to comment.