Skip to content

Commit 73d1051

Browse files
committed
fix: minor css fixes
1 parent f140e15 commit 73d1051

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

pages/diff/_lhs/_rhs.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
<div class="h-full">
33
<main class="container h-full mx-auto mt-24">
44
<div class="flex gap-4 mt-5">
5-
<div class="flex-1 max-h-full p-4 border-2 rounded-sm">
5+
<div
6+
class="flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
7+
>
68
<p v-for="(lineDiff, index) in lhsDiff" :key="index">
79
<span v-html="lineDiff"></span>
810
</p>
911
</div>
10-
<div class="flex-1 max-h-full p-4 border-2 rounded-sm">
12+
<div
13+
class="flex-1 p-4 overflow-y-auto border-2 rounded-sm max-h-screen--nav"
14+
>
1115
<p v-for="(lineDiff, index) in rhsDiff" :key="index">
1216
<span v-html="lineDiff"></span>
1317
</p>

pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<div class="flex flex-wrap w-full h-full gap-4">
66
<textarea
77
id="lhs"
8-
class="flex-1 h-full rounded-md resize-none form-textarea"
8+
class="flex-1 h-full max-h-full rounded-md resize-none form-textarea"
99
></textarea>
1010
<textarea
1111
id="rhs"
12-
class="flex-1 h-full rounded-md resize-none form-textarea"
12+
class="flex-1 h-full max-h-full rounded-md resize-none form-textarea"
1313
></textarea>
1414
<div class="self-end w-full text-center">
1515
<button

tailwind.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
mode: 'jit',
3+
theme: {
4+
maxHeight: {
5+
'screen--nav': 'calc(100vh - 7rem)',
6+
}
7+
},
38
plugins: [
49
require('@tailwindcss/forms'),
510
]

0 commit comments

Comments
 (0)