44 <template #right >
55 <button
66 type =" button"
7- class ="
8- inline-flex
9- justify-center
10- px-4
11- py-2
12- transition-transform
13- transform
14- rounded-md
15- shadow
16- outline-none
17- copy-uri-button
18- align-center
19- focus:ring-4
20- active:scale-y-75
21- "
7+ class =" inline-flex justify-center px-4 py-2 transition-transform transform rounded-md shadow outline-none copy-uri-button align-center focus:ring-4 active:scale-y-75"
228 :class =" {
239 'bg-blue-500 text-white': !copied,
2410 'bg-green-500 text-gray-800': copied,
6349 </template >
6450 </Navbar >
6551 <main >
66- <section
67- class ="
68- flex
69- items-stretch
70- w-full
71- gap-4
72- font-mono
73- text-gray-800
74- dark:text-gray-50
75- "
52+ <div
53+ class =" flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
7654 >
77- <div class =" flex flex-col w-1/2 gap-2" >
78- <p class =" flex-grow-0 text-lg" >{{ lhsLabel }}</p >
55+ <div
56+ class =" relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 max-h-screen--nav line-number-gutter min-h-80"
57+ >
58+ <RTStickyCopyButton :click-handler =" copyTextToClipboard" />
7959 <div
80- class ="
81- relative
82- flex-1
83- px-4
84- py-2
85- overflow-y-auto
86- border-2
87- rounded-md
88- dark:border-gray-500
89- max-h-screen--nav
90- line-number-gutter
91- min-h-80
92- "
60+ v-for =" (lineDiff, index) in lhsDiff"
61+ :key =" index"
62+ :class =" {
63+ 'bg-red-200 dark:bg-red-800': lineDiff.includes('isModified'),
64+ }"
9365 >
94- <RTStickyCopyButton :click-handler =" copyTextToClipboard" />
95- <div
96- v-for =" (lineDiff, index) in lhsDiff"
97- :key =" index"
98- :class =" {
99- 'bg-red-200 dark:bg-red-800': lineDiff.includes('isModified'),
100- }"
101- >
102- <p class =" break-all whitespace-pre-wrap" >
103- <span v-html =" lineDiff" ></span >
104- </p >
105- </div >
66+ <p class =" break-all whitespace-pre-wrap" v-html =" lineDiff" ></p >
10667 </div >
10768 </div >
108-
109- <div class =" flex flex-col w-1/2 gap-2" >
110- <p class =" flex-grow-0 text-lg" >{{ rhsLabel }}</p >
69+ <div
70+ class =" relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 min-h-80 line-number-gutter max-h-screen--nav"
71+ >
72+ <RTStickyCopyButton :click-handler =" copyTextToClipboard" />
11173 <div
112- class ="
113- relative
114- flex-1
115- px-4
116- py-2
117- overflow-y-auto
118- border-2
119- rounded-md
120- dark:border-gray-500
121- min-h-80
122- line-number-gutter
123- max-h-screen--nav
124- "
74+ v-for =" (lineDiff, index) in rhsDiff"
75+ :key =" index"
76+ :class =" {
77+ 'bg-green-200 dark:bg-green-700': lineDiff.includes('isModified'),
78+ }"
12579 >
126- <RTStickyCopyButton :click-handler =" copyTextToClipboard" />
127- <div
128- v-for =" (lineDiff, index) in rhsDiff"
129- :key =" index"
130- :class =" {
131- 'bg-green-200 dark:bg-green-700':
132- lineDiff.includes('isModified'),
133- }"
134- >
135- <p class =" break-all whitespace-pre-wrap" >
136- <span v-html =" lineDiff" ></span >
137- </p >
138- </div >
80+ <p class =" break-all whitespace-pre-wrap" v-html =" lineDiff" ></p >
13981 </div >
14082 </div >
141- </section >
83+ </div >
14284 </main >
14385 <Footer />
14486 </div >
@@ -155,8 +97,6 @@ export default {
15597 return {
15698 lhsDiff: this .lhsDiff ,
15799 rhsDiff: this .rhsDiff ,
158- rhsLabel: this .rhsLabel ,
159- lhsLabel: this .lhsLabel ,
160100 copied: false ,
161101 }
162102 },
0 commit comments