Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
style(comments): make transitions smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Aug 6, 2023
1 parent f26242d commit 36f1c2a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/PostComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ async function saveComment() {
</script>

<template>
<div class="comment">
<div class="main-comment" @click="onclick(id)">
<div class="comment pl-1">
<div class="main-comment mb-2" @click="onclick(id)">
<div class="existing-comment" v-if="!comments.some((cm) => cm.id === id && cm.deleted)">
<div class="header mx-3 mt-2">
<img
Expand Down Expand Up @@ -199,10 +199,10 @@ async function saveComment() {
</VList>
</VMenu>
</div>
<VExpandXTransition>
<VExpandTransition>
<VTextarea
placeholder="Reply to this comment..."
class="new-reply-input"
class="new-reply-input px-3"
active="true"
variant="solo-filled"
auto-grow="auto-grow"
Expand All @@ -217,7 +217,7 @@ async function saveComment() {
prepend-inner-icon="mdi-menu-up"
@click:prepend-inner="currentCommentStore.setCurrentComment(null)"
/>
</VExpandXTransition>
</VExpandTransition>
<div class="replies">
<PostComment
v-for="reply in comments.filter((comment) => comment.parentCommentId === id)"
Expand All @@ -243,7 +243,6 @@ async function saveComment() {
align-self: stretch;
justify-content: flex-start;
height: 100%;
padding: 0.5rem 0 0 0.5rem;
margin-left: 13px;
background-color: var(--color-background-soft);
border-left: var(--color-border) solid 3px;
Expand Down Expand Up @@ -335,7 +334,6 @@ async function saveComment() {
width: 100%;
border: none;
border-radius: 0.5rem;
padding: 0.5rem;
}
svg {
Expand Down

0 comments on commit 36f1c2a

Please sign in to comment.