Skip to content

Commit 5c216f0

Browse files
committed
fix(ui): properly aligning the block labels
1 parent 99d6b21 commit 5c216f0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pages/v1/diff.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template #right>
55
<button
66
type="button"
7-
class="inline-flex justify-center px-4 py-2 transition-transform transform rounded-md shadow outline-none copy-uri-button align-center focus:ring-4 active:scale-y-75"
7+
class="inline-flex justify-center px-4 py-2 transition-transform transform rounded-md shadow outline-none copy-uri-button align-center focus:ring-4 active:scale-y-75"
88
:class="{
99
'bg-blue-500 text-white': !copied,
1010
'bg-green-500 text-gray-800': copied,
@@ -50,12 +50,14 @@
5050
</Navbar>
5151
<main>
5252
<section
53-
class="flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
53+
class="flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
5454
>
5555
<div class="flex flex-col w-1/2 gap-2">
56-
<p class="flex-grow-0 text-lg">{{ lhsLabel }}</p>
56+
<p class="flex-grow-0 text-lg font-bold text-center capitalize">
57+
{{ lhsLabel }}
58+
</p>
5759
<div
58-
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 max-h-screen--nav line-number-gutter min-h-80"
60+
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 max-h-screen--nav line-number-gutter min-h-80"
5961
>
6062
<RTStickyCopyButton :click-handler="copyTextToClipboard" />
6163
<div
@@ -71,9 +73,11 @@
7173
</div>
7274

7375
<div class="flex flex-col w-1/2 gap-2">
74-
<p class="flex-grow-0 text-lg">{{ rhsLabel }}</p>
76+
<p class="flex-grow-0 text-lg font-bold text-center capitalize">
77+
{{ rhsLabel }}
78+
</p>
7579
<div
76-
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 min-h-80 line-number-gutter max-h-screen--nav"
80+
class="relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 min-h-80 line-number-gutter max-h-screen--nav"
7781
>
7882
<RTStickyCopyButton :click-handler="copyTextToClipboard" />
7983
<div

0 commit comments

Comments
 (0)