File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/Frontend/src/components/messages Expand file tree Collapse file tree 1 file changed +14
-2
lines changed 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