Skip to content

Commit cf00bf7

Browse files
committed
Decrease files and dirs transition durations to 100ms
1 parent db91ac0 commit cf00bf7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/components/Code/DirectoryListing.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const bytesFormatter = useBytesFormatter()
7474
<!-- Parent directory link -->
7575
<tr
7676
v-if="parentPath !== null"
77-
class="border-b border-border hover:bg-bg-subtle transition-colors"
77+
class="border-b border-border hover:bg-bg-subtle transition-[color,background-color] duration-100"
7878
>
7979
<td colspan="2">
8080
<LinkBase
@@ -98,7 +98,7 @@ const bytesFormatter = useBytesFormatter()
9898
<tr
9999
v-for="node in currentContents"
100100
:key="node.path"
101-
class="border-b border-border hover:bg-bg-subtle transition-colors"
101+
class="border-b border-border hover:bg-bg-subtle transition-[color,background-color] duration-100"
102102
>
103103
<td colspan="2">
104104
<LinkBase

app/components/Code/FileTree.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ watch(
5353
<!-- Directory -->
5454
<template v-if="node.type === 'directory'">
5555
<ButtonBase
56-
class="w-full justify-start! rounded-none! border-none!"
56+
class="w-full justify-start! rounded-none! border-none! transition-[color,background-color]! duration-100!"
5757
block
5858
:aria-pressed="isNodeActive(node)"
5959
:style="{ paddingLeft: `${depth * 12 + 12}px` }"
@@ -88,7 +88,7 @@ watch(
8888
variant="button-secondary"
8989
:to="getFileRoute(node.path)"
9090
:aria-current="currentPath === node.path"
91-
class="w-full justify-start! rounded-none! border-none!"
91+
class="w-full justify-start! rounded-none! border-none! transition-[color,background-color]! duration-100!"
9292
block
9393
:style="{ paddingLeft: `${depth * 12 + 32}px` }"
9494
>

0 commit comments

Comments
 (0)