File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ async function copyToClipboard() {
19
19
20
20
<template >
21
21
<Tippy content =" Copied" ref =" tippyRef" trigger =" manual" >
22
- <button type =" button" class =" btn btn-sm" @click =" copyToClipboard" ><i class =" fa fa-copy" ></i > Copy to clipboard </button >
22
+ <button type =" button" title = " Copy To Clipboard " class =" btn btn-sm" @click =" copyToClipboard" ><i class =" fa fa-copy" ></i ></button >
23
23
</Tippy >
24
24
</template >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { ExtendedFailedMessage } from " @/resources/FailedMessage" ;
3
-
3
+ import CopyToClipboard from " @/components/CopyToClipboard.vue " ;
4
4
const props = defineProps <{
5
5
message: ExtendedFailedMessage ;
6
6
}>();
@@ -11,8 +11,20 @@ const props = defineProps<{
11
11
<tbody >
12
12
<tr class =" interactiveList" v-for =" (header, index) in props.message.headers" :key =" index" >
13
13
<td nowrap =" nowrap" >{{ header.key }}</td >
14
- <td >
14
+ <td class =" toolbar" >
15
+ <!--
15
16
<pre>{{ header.value }}</pre>
17
+ <span>
18
+ <CopyToClipboard :value="header.value || ''" />
19
+
20
+ </span>
21
+ -->
22
+ <!-- Use flexbox to align items horizontally -->
23
+ <div style =" display : flex ; align-items : center " >
24
+ <!-- The pre element should not wrap, so use white-space: nowrap or keep it as a block element -->
25
+ <pre style =" margin : 0 ; white-space : nowrap " >{{ header.value }}</pre >
26
+ <CopyToClipboard :value =" header.value || ''" />
27
+ </div >
16
28
</td >
17
29
</tr >
18
30
</tbody >
You can’t perform that action at this time.
0 commit comments