Skip to content

Commit 5dbbd91

Browse files
committed
fix: making it mobile first
1 parent 70ae6ef commit 5dbbd91

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="fixed top-0 left-0 right-0 text-gray-800 shadow-lg dark:shadow-dark bg-gray-50 dark:bg-gray-900 z-100 dark:text-gray-50"
44
>
55
<div class="container flex items-center h-full py-4 m-auto">
6-
<div v-if="showBackButton" class="mr-4">
6+
<div v-if="showBackButton" class="hidden mr-4 md:block">
77
<NuxtLink to="/">
88
<svg
99
class="w-6 h-6"

pages/diff/_diff.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
<span class="inline-flex justify-center" v-show="copied">
1515
<svg
16-
class="inline-block w-6 h-6 mr-2 ml-[-4px]"
16+
class="inline-block w-6 h-6 ml-[-4px]"
1717
fill="none"
1818
stroke="currentColor"
1919
viewBox="0 0 24 24"
@@ -26,11 +26,11 @@
2626
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"
2727
></path>
2828
</svg>
29-
<span>Copied</span>
29+
<span class="hidden ml-2 md:inline-block">Copied</span>
3030
</span>
3131
<span class="inline-flex justify-center" v-show="!copied">
3232
<svg
33-
class="w-6 h-6 mr-2"
33+
class="w-6 h-6"
3434
fill="none"
3535
stroke="currentColor"
3636
viewBox="0 0 24 24"
@@ -43,7 +43,7 @@
4343
d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"
4444
></path>
4545
</svg>
46-
<span>Copy link</span>
46+
<span class="hidden ml-2 md:inline-block">Copy link</span>
4747
</span>
4848
</button>
4949
</template>

pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
id="rhs"
1919
class="flex-1 h-full max-h-full bg-transparent rounded-md resize-none form-textarea"
2020
></textarea>
21-
<div class="self-end w-full text-center">
21+
<div class="self-end flex-grow-0 w-full text-center">
2222
<button
2323
class="inline-flex items-center justify-center w-48 px-4 py-2 transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none text-gray-50 focus:ring-4 active:scale-y-75"
2424
>

0 commit comments

Comments
 (0)