Skip to content

Commit 99680b9

Browse files
committed
fix: major css layout fixes
1 parent 44ea304 commit 99680b9

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

layouts/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="w-full h-full">
2+
<div class="page-root">
33
<Toast />
44
<Nuxt />
55
</div>

pages/diff/_diff.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flow-root h-full">
2+
<div class="contents">
33
<Navbar show-back-button="true">
44
<template v-slot:right>
55
<button
@@ -48,8 +48,8 @@
4848
</button>
4949
</template>
5050
</Navbar>
51-
<main class="h-full mt-24 xl:container">
52-
<div class="flex gap-4 mt-5">
51+
<main>
52+
<div class="flex items-start w-full gap-4">
5353
<div
5454
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-sm max-h-screen--nav line-numbers min-h-80"
5555
>

pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
2-
<div class="flow-root h-full page-root">
2+
<div class="contents">
33
<Navbar />
4-
<main class="flex flex-wrap h-full mt-20 xl:container">
4+
<main>
55
<h1 class="w-full mb-2 text-xl text-center">
66
Find difference in any two text blocks and get easy sharable link
77
</h1>

static/global.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ html,
33
body,
44
#__nuxt,
55
#__layout,
6+
.page-root,
67
main {
7-
width: 100%;
8+
@apply h-full;
89
}
9-
html,
10-
body {
11-
height: 100%;
10+
11+
.page-root {
12+
@apply flow-root w-full;
1213
}
13-
#__nuxt,
14-
#__layout,
14+
1515
main {
16-
height: 100%;
16+
@apply flex flex-wrap xl:container;
17+
margin-top: 5.5rem;
1718
}
1819

1920
/* custom scrollbar */

0 commit comments

Comments
 (0)