11<template >
2- <div class =" w-full h-full " >
2+ <div class =" contents " >
33 <Navbar show-back-button =" true" >
44 <template v-slot :right >
55 <button
2525 </button >
2626 </template >
2727 </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 >
4543 </div >
46- </main >
47- </div >
44+ </div >
45+ </main >
4846 </div >
4947</template >
5048
@@ -60,7 +58,7 @@ export default {
6058 .map ((item ) => {
6159 if (item[0 ] === - 1 || item[0 ] === 0 ) {
6260 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 >`
6462 }
6563 return ' '
6664 })
@@ -74,7 +72,7 @@ export default {
7472 .map ((item ) => {
7573 if (item[0 ] === 1 || item[0 ] === 0 ) {
7674 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 >`
7876 }
7977 return ' '
8078 })
@@ -91,7 +89,6 @@ export default {
9189 },
9290 methods: {
9391 copyUrlToClipboard () {
94- console .log (' demo' )
9592 navigator .clipboard .writeText (window .location .href )
9693 },
9794 },
0 commit comments