11<template >
2- <div class =" page-contents" >
3- <!-- Following hidden input is hacky way to update monaco editor theme when user changes theme manually -->
4- <input type =" hidden" inert :value =" onThemeChange" />
5- <Navbar :show-back-button =" true" />
6- <main class =" outline-none" tabindex =" 0" >
7- <DiffActionBar :diff-navigator =" diffNavigator" />
8- <section
9- class =" flex flex-wrap items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
10- >
11- <div class =" flex w-full gap-4 space-around" >
12- <p
13- class =" flex-grow-0 flex-shrink-0 w-1/2 text-lg font-bold text-center capitalize break-all "
14- >
15- <span class =" inline-block w-4/5" >{{ lhsLabel }}</span >
16- </p >
17- <p
18- class =" flex-grow-0 flex-shrink-0 w-1/2 text-lg font-bold text-center capitalize break-all "
19- >
20- <span class =" inline-block w-4/5" >{{ rhsLabel }}</span >
21- </p >
22- </div >
23- <div
24- id =" monaco-diff-viewer"
25- class =" w-full h-screen p-2 border border-gray-600 rounded-md editor"
26- ></div >
27- </section >
28- </main >
2+ <div class =" contents" >
3+ <div class =" page-contents" >
4+ <!-- Following hidden input is hacky way to update monaco editor theme when user changes theme manually -->
5+ <input type =" hidden" inert :value =" onThemeChange" />
6+ <Navbar :show-back-button =" true" />
7+ <main class =" outline-none" tabindex =" 0" >
8+ <DiffActionBar :diff-navigator =" diffNavigator" />
9+ <section
10+ class ="
11+ flex flex-wrap
12+ items-stretch
13+ w-full
14+ gap-4
15+ font-mono
16+ text-gray-800
17+ dark:text-gray-50
18+ "
19+ >
20+ <div class =" flex w-full gap-4 space-around" >
21+ <p
22+ class ="
23+ flex-grow-0 flex-shrink-0
24+ w-1/2
25+ text-lg
26+ font-bold
27+ text-center
28+ capitalize
29+ break-all
30+ "
31+ >
32+ <span class =" inline-block w-4/5" >{{ lhsLabel }}</span >
33+ </p >
34+ <p
35+ class ="
36+ flex-grow-0 flex-shrink-0
37+ w-1/2
38+ text-lg
39+ font-bold
40+ text-center
41+ capitalize
42+ break-all
43+ "
44+ >
45+ <span class =" inline-block w-4/5" >{{ rhsLabel }}</span >
46+ </p >
47+ </div >
48+ <div
49+ id =" monaco-diff-viewer"
50+ class =" w-full h-screen p-2 border border-gray-600 rounded-md editor"
51+ ></div >
52+ </section >
53+ </main >
54+ </div >
55+ <Footer />
2956 </div >
3057</template >
3158
@@ -39,9 +66,10 @@ import {
3966} from ' ../../helpers/utils'
4067import DiffActionBar from ' ~/components/v2/diffActionBar.vue'
4168import Navbar from ' ~/components/v2/navbar.vue'
69+ import Footer from ' ~/components/v2/footer.vue'
4270import { v2DiffData } from ' ~/helpers/types'
4371export default Vue .extend ({
44- components: { DiffActionBar , Navbar },
72+ components: { DiffActionBar , Navbar , Footer },
4573 layout: ' main' ,
4674 data(): v2DiffData {
4775 return {
@@ -122,6 +150,6 @@ export default Vue.extend({
122150
123151<style >
124152.editor {
125- max-height : calc (100vh - 15 rem );
153+ max-height : calc (100vh - 17 rem );
126154}
127155 </style >
0 commit comments