Skip to content

Commit 2ef2ae7

Browse files
committed
fix(ui): fixed the line number alignment with text lines
1 parent 40a5f04 commit 2ef2ae7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pages/diff.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default {
217217
counter-increment: line-numbers;
218218
content: counter(line-numbers);
219219
width: var(--line-number-gutter-width);
220-
@apply absolute left-0 top-0 -mx-4 bottom-0 text-center bg-gray-200 dark:bg-gray-700 dark:text-gray-50 text-gray-500 flex justify-center text-sm;
220+
@apply absolute left-0 top-[2px] -mx-4 bottom-0 text-center bg-gray-200 dark:bg-gray-700 dark:text-gray-50 text-gray-500 flex justify-center text-sm;
221221
}
222222
&:first-of-type {
223223
&::before {

pages/v1/diff.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default {
235235
counter-increment: line-numbers;
236236
content: counter(line-numbers);
237237
width: var(--line-number-gutter-width);
238-
@apply absolute left-0 top-0 -mx-4 bottom-0 text-center bg-gray-200 dark:bg-gray-700 dark:text-gray-50 text-gray-500 flex justify-center text-sm;
238+
@apply absolute left-0 top-[2px] -mx-4 bottom-0 text-center bg-gray-200 dark:bg-gray-700 dark:text-gray-50 text-gray-500 flex justify-center text-sm;
239239
}
240240
&:first-of-type {
241241
&::before {

0 commit comments

Comments
 (0)