1
1
<template >
2
- <div class =" w-full h-full " >
2
+ <div class =" contents " >
3
3
<Navbar show-back-button =" true" >
4
4
<template v-slot :right >
5
5
<button
25
25
</button >
26
26
</template >
27
27
</Navbar >
28
- <div class =" h-full" >
29
- <main class =" h-full mt-24 xl:container" >
30
- <div class =" flex gap-4 mt-5" >
31
- <div
32
- class =" flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
33
- >
34
- <p v-for =" (lineDiff, index) in lhsDiff" :key =" index" >
35
- <span v-html =" lineDiff" ></span >
36
- </p >
37
- </div >
38
- <div
39
- class =" flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
40
- >
41
- <p v-for =" (lineDiff, index) in rhsDiff" :key =" index" >
42
- <span v-html =" lineDiff" ></span >
43
- </p >
44
- </div >
28
+ <main class =" h-full mt-24 xl:container" >
29
+ <div class =" flex gap-4 mt-5" >
30
+ <div
31
+ class =" flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
32
+ >
33
+ <p v-for =" (lineDiff, index) in lhsDiff" :key =" index" >
34
+ <span v-html =" lineDiff" ></span >
35
+ </p >
36
+ </div >
37
+ <div
38
+ class =" flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
39
+ >
40
+ <p v-for =" (lineDiff, index) in rhsDiff" :key =" index" >
41
+ <span v-html =" lineDiff" ></span >
42
+ </p >
45
43
</div >
46
- </main >
47
- </div >
44
+ </div >
45
+ </main >
48
46
</div >
49
47
</template >
50
48
@@ -60,7 +58,7 @@ export default {
60
58
.map ((item ) => {
61
59
if (item[0 ] === - 1 || item[0 ] === 0 ) {
62
60
const className = item[0 ] === - 1 ? ' bg-red-300' : ' '
63
- return ` <pre class="inline mr-[-4px] p-0 m-0 ${ className} ">${ item[1 ]} </pre >`
61
+ return ` <span class="whitespace-pre-wrap font-mono break-all inline mr-[-4px] p-0 m-0 ${ className} ">${ item[1 ]} </span >`
64
62
}
65
63
return ' '
66
64
})
@@ -74,7 +72,7 @@ export default {
74
72
.map ((item ) => {
75
73
if (item[0 ] === 1 || item[0 ] === 0 ) {
76
74
const className = item[0 ] === 1 ? ' bg-green-300' : ' '
77
- return ` <pre class="inline mr-[-4px] p-0 m-0 ${ className} ">${ item[1 ]} </pre >`
75
+ return ` <span class="whitespace-pre-wrap font-mono break-all inline mr-[-4px] p-0 m-0 ${ className} ">${ item[1 ]} </span >`
78
76
}
79
77
return ' '
80
78
})
@@ -91,7 +89,6 @@ export default {
91
89
},
92
90
methods: {
93
91
copyUrlToClipboard () {
94
- console .log (' demo' )
95
92
navigator .clipboard .writeText (window .location .href )
96
93
},
97
94
},
0 commit comments