diff --git a/components/RepoBox.vue b/components/RepoBox.vue
index 621c330e..7f1adea8 100644
--- a/components/RepoBox.vue
+++ b/components/RepoBox.vue
@@ -5,7 +5,7 @@
'border-juniper hover:bg-ink-400': isCardOpen,
'border-ink-200': !isCardOpen
}"
- class="select-none border w-full rounded-md mb-4 cursor-pointer hover:bg-ink-300 group"
+ class="select-none border w-full rounded-md mb-4 cursor-pointer hover:bg-ink-300 group transition-colors duration-200 ease-in-out"
@click="toggle(repo.id)"
>
@@ -43,29 +43,38 @@
-
- -
- #{{ issue.number }}
-
-
-
+
+
+
+ -
+ #{{ issue.number }}
+
+
+
+
+
@@ -113,4 +122,43 @@ function getIssueCommentsCounterTooltip(issue) {
}
return numComments > 1 ? `There are ${numComments} comments on this issue` : `There is one comment on this issue`
}
+
+function enter(element) {
+ element.style.height = 'auto'
+ const height = getComputedStyle(element).height
+ element.style.height = '0px'
+
+ getComputedStyle(element).height // force reflow
+
+ requestAnimationFrame(() => {
+ element.style.height = height
+ })
+}
+
+function afterEnter(element) {
+ element.style.height = 'auto'
+}
+
+function leave(element) {
+ element.style.height = getComputedStyle(element).height
+
+ getComputedStyle(element).height // force reflow
+
+ requestAnimationFrame(() => {
+ element.style.height = '0px'
+ })
+}
+
+