Skip to content

Commit 1dfb437

Browse files
committed
fix: fixing line number gutter height to have it edge to edge from top to bottom
1 parent 66fb4d8 commit 1dfb437

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/RTStickyCopyButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="sticky top-0 text-right z-1">
2+
<div class="sticky top-0 pt-12 text-right z-1">
33
<button
44
class="absolute top-0 right-0 p-2 text-gray-800 transition-all transform rounded-full shadow dark:text-gray-50 z-1 hover:shadow-lg hover:scale-110 hover:rotate-12"
55
:class="{

pages/diff.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ export default {
197197
counter-reset: line-numbers;
198198
199199
--line-number-gutter-width: calc(var(--max-line-number-characher) + 10px);
200+
&::before {
201+
content: '';
202+
width: var(--line-number-gutter-width);
203+
@apply bg-gray-200 dark:bg-gray-700 inline-block left-0 top-0 bottom-0 absolute text-sm;
204+
}
200205
@apply relative;
201206
p {
202207
padding-left: calc(var(--line-number-gutter-width) - 10px);

0 commit comments

Comments
 (0)