feat: add copy to clipboard button in response headers entry

This commit is contained in:
liyasthomas
2022-05-28 15:39:17 +05:30
parent b132077cdd
commit eb6c4f1a05
2 changed files with 56 additions and 19 deletions

View File

@@ -17,26 +17,11 @@
/>
</div>
</div>
<div
<LensesHeadersRendererEntry
v-for="(header, index) in headers"
:key="`header-${index}`"
class="flex border-b divide-x divide-dividerLight border-dividerLight group"
>
<span
class="flex flex-1 min-w-0 px-4 py-2 transition group-hover:text-secondaryDark"
>
<span class="truncate rounded-sm select-all">
{{ header.key }}
</span>
</span>
<span
class="flex flex-1 min-w-0 px-4 py-2 transition group-hover:text-secondaryDark"
>
<span class="truncate rounded-sm select-all">
{{ header.value }}
</span>
</span>
</div>
:key="index"
:header="header"
/>
</div>
</template>