File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<header class =" fixed top-0 left-0 right-0 bg-white shadow-lg" >
3
- <div class =" container flex h-full py-4 m-auto" >
4
- <div v-if =" showBackButton" class =" items-center mr-4" >
3
+ <div class =" container flex items-center h-full py-4 m-auto" >
4
+ <div v-if =" showBackButton" class =" mr-4" >
5
5
<NuxtLink to =" /" >
6
6
<svg
7
7
class =" w-6 h-6"
Original file line number Diff line number Diff line change 15
15
></textarea >
16
16
<div class =" self-end w-full text-center" >
17
17
<button
18
- class =" w-64 px-4 py-3 text-white transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none focus:ring-4 active:scale-y-75"
18
+ class =" inline-flex items-center justify-center w-48 px-4 py-2 text-white transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none focus:ring-4 active:scale-y-75"
19
19
>
20
20
Compare
21
21
</button >
@@ -45,6 +45,9 @@ export default Vue.extend({
45
45
' rhs'
46
46
) as HTMLTextAreaElement
47
47
const rhs: string = rhsTextArea ?.value || ' '
48
+ if (! lhs || ! rhs ) {
49
+ return
50
+ }
48
51
const originalLhs = lhs .split (' \n ' )
49
52
const originalRhs = rhs .split (' \n ' )
50
53
const diff = originalLhs .map ((x , i ) => {
You can’t perform that action at this time.
0 commit comments