4
4
<template #right >
5
5
<button
6
6
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"
22
8
:class =" {
23
9
'bg-blue-500 text-white': !copied,
24
10
'bg-green-500 text-gray-800': copied,
63
49
</template >
64
50
</Navbar >
65
51
<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"
76
54
>
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" />
79
59
<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
+ }"
93
65
>
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 >
106
67
</div >
107
68
</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" />
111
73
<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
+ }"
125
79
>
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 >
139
81
</div >
140
82
</div >
141
- </section >
83
+ </div >
142
84
</main >
143
85
<Footer />
144
86
</div >
@@ -155,8 +97,6 @@ export default {
155
97
return {
156
98
lhsDiff: this .lhsDiff ,
157
99
rhsDiff: this .rhsDiff ,
158
- rhsLabel: this .rhsLabel ,
159
- lhsLabel: this .lhsLabel ,
160
100
copied: false ,
161
101
}
162
102
},
0 commit comments