Skip to content

Commit af56682

Browse files
committed
refactor: use new prop for existing implementations
1 parent 65bc1c3 commit af56682

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

app/components/Code/FileTree.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ watch(
5050
<!-- Directory -->
5151
<template v-if="node.type === 'directory'">
5252
<ButtonBase
53-
class="w-full flex! justify-start! rounded-none! border-none!"
53+
class="w-full justify-start! rounded-none! border-none!"
54+
block
5455
:aria-pressed="isNodeActive(node)"
5556
:style="{ paddingLeft: `${depth * 12 + 12}px` }"
5657
@click="toggleDir(node.path)"
@@ -82,7 +83,8 @@ watch(
8283
variant="button-secondary"
8384
:to="getFileRoute(node.path)"
8485
:aria-current="currentPath === node.path"
85-
class="w-full flex! justify-start! rounded-none! border-none!"
86+
class="w-full justify-start! rounded-none! border-none!"
87+
block
8688
:style="{ paddingLeft: `${depth * 12 + 32}px` }"
8789
:classicon="getFileIcon(node.name)"
8890
>

app/components/Compare/ComparisonGrid.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ function getReplacementTooltip(col: ComparisonGridColumn): string {
4242
<span class="inline-flex items-center gap-1.5 truncate">
4343
<LinkBase
4444
:to="packageRoute(col.name, col.version)"
45-
class="text-sm flex! truncate"
45+
class="text-sm truncate"
46+
block
4647
:title="col.version ? `${col.name}@${col.version}` : col.name"
4748
>
4849
{{ col.name }}<template v-if="col.version">@{{ col.version }}</template>

0 commit comments

Comments
 (0)