@@ -102,7 +102,9 @@ function computeDiff() {
102102 }
103103
104104 const hunksWithSkips = insertSkipBlocks (
105- parsed .hunks .filter ((h ): h is typeof parsed .hunks [number ] & { type: ' hunk' } => h .type === ' hunk' ),
105+ parsed .hunks .filter (
106+ (h ): h is (typeof parsed .hunks )[number ] & { type: ' hunk' } => h .type === ' hunk' ,
107+ ),
106108 )
107109 const stats = countDiffStats (hunksWithSkips )
108110
@@ -187,7 +189,6 @@ const changeRatioPercent = computed(() => calcPercent(maxChangeRatio.value, 0, 1
187189const diffDistancePercent = computed (() => calcPercent (maxDiffDistance .value , 1 , 60 ))
188190const charEditPercent = computed (() => calcPercent (inlineMaxCharEdits .value , 0 , 10 ))
189191
190-
191192function formatBytes(bytes : number | undefined ): string {
192193 if (bytes === undefined ) return ' '
193194 if (bytes < 1024 ) return ` ${bytes } B `
@@ -225,10 +226,7 @@ function getCodeUrl(version: string): string {
225226
226227 <!-- Stats -->
227228 <template v-if =" diff ?.stats " >
228- <span
229- v-if =" diff.stats.additions > 0"
230- class =" text-xs text-green-500 font-mono shrink-0"
231- >
229+ <span v-if =" diff.stats.additions > 0" class =" text-xs text-green-500 font-mono shrink-0" >
232230 +{{ diff.stats.additions }}
233231 </span >
234232 <span v-if =" diff.stats.deletions > 0" class =" text-xs text-red-500 font-mono shrink-0" >
@@ -261,7 +259,10 @@ function getCodeUrl(version: string): string {
261259 >
262260 <span class =" i-carbon-settings w-3.5 h-3.5" />
263261 Options
264- <span class =" i-carbon-chevron-down w-3 h-3 transition-transform" :class =" { 'rotate-180': showOptions }" />
262+ <span
263+ class =" i-carbon-chevron-down w-3 h-3 transition-transform"
264+ :class =" { 'rotate-180': showOptions }"
265+ />
265266 </button >
266267
267268 <!-- Dropdown menu -->
@@ -316,12 +317,18 @@ function getCodeUrl(version: string): string {
316317 </div >
317318
318319 <!-- Sliders -->
319- <motion .div class =" flex flex-col gap-2" :animate =" { opacity: mergeModifiedLines ? 1 : 0 }" >
320+ <motion .div
321+ class =" flex flex-col gap-2"
322+ :animate =" { opacity: mergeModifiedLines ? 1 : 0 }"
323+ >
320324 <!-- Change ratio slider -->
321325 <div class =" sr-only" >
322326 <label for =" change-ratio" >Change ratio</label >
323327 </div >
324- <div class =" slider-shell min-w-[360px]" :class =" { 'is-disabled': !mergeModifiedLines }" >
328+ <div
329+ class =" slider-shell min-w-[360px]"
330+ :class =" { 'is-disabled': !mergeModifiedLines }"
331+ >
325332 <div class =" slider-labels" >
326333 <span class =" slider-label" >Change ratio</span >
327334 <span class =" slider-value tabular-nums" >{{ maxChangeRatio.toFixed(2) }}</span >
@@ -351,7 +358,10 @@ function getCodeUrl(version: string): string {
351358 <div class =" sr-only" >
352359 <label for =" diff-distance" >Diff distance</label >
353360 </div >
354- <div class =" slider-shell min-w-[360px]" :class =" { 'is-disabled': !mergeModifiedLines }" >
361+ <div
362+ class =" slider-shell min-w-[360px]"
363+ :class =" { 'is-disabled': !mergeModifiedLines }"
364+ >
355365 <div class =" slider-labels" >
356366 <span class =" slider-label" >Diff distance</span >
357367 <span class =" slider-value tabular-nums" >{{ maxDiffDistance }}</span >
@@ -381,7 +391,10 @@ function getCodeUrl(version: string): string {
381391 <div class =" sr-only" >
382392 <label for =" char-edits" >Char edits</label >
383393 </div >
384- <div class =" slider-shell min-w-[360px]" :class =" { 'is-disabled': !mergeModifiedLines }" >
394+ <div
395+ class =" slider-shell min-w-[360px]"
396+ :class =" { 'is-disabled': !mergeModifiedLines }"
397+ >
385398 <div class =" slider-labels" >
386399 <span class =" slider-label" >Char edits</span >
387400 <span class =" slider-value tabular-nums" >{{ inlineMaxCharEdits }}</span >
@@ -465,7 +478,6 @@ function getCodeUrl(version: string): string {
465478 :enable-shiki =" true"
466479 :word-wrap =" wordWrap"
467480 />
468-
469481 </div >
470482 </div >
471483</template >
@@ -494,7 +506,10 @@ function getCodeUrl(version: string): string {
494506 border-radius : 12px ;
495507 overflow : hidden ;
496508 cursor : grab ;
497- transition : background-color 150ms ease , border-color 150ms ease , opacity 150ms ease ;
509+ transition :
510+ background-color 150ms ease ,
511+ border-color 150ms ease ,
512+ opacity 150ms ease ;
498513}
499514
500515.slider-shell :hover {
@@ -569,7 +584,9 @@ function getCodeUrl(version: string): string {
569584 inset : 0 auto 0 0 ;
570585 background : var (--bg-subtle );
571586 border-radius : 10px ;
572- transition : width 150ms ease-out , background-color 150ms ease-out ;
587+ transition :
588+ width 150ms ease-out ,
589+ background-color 150ms ease-out ;
573590 z-index : 2 ;
574591 pointer-events : none ;
575592}
0 commit comments