Merge pull request #100 from nagisa77/codex/fix-ui-expansion-for-multi-level-comment-links

Fix nested comment link expansion
This commit is contained in:
Tim
2025-07-07 14:39:44 +08:00
committed by GitHub

View File

@@ -58,7 +58,7 @@
</template> </template>
<script> <script>
import { ref } from 'vue' import { ref, watch } from 'vue'
import CommentEditor from './CommentEditor.vue' import CommentEditor from './CommentEditor.vue'
import { renderMarkdown } from '../utils/markdown' import { renderMarkdown } from '../utils/markdown'
import { API_BASE_URL, toast } from '../main' import { API_BASE_URL, toast } from '../main'
@@ -81,6 +81,12 @@ const CommentItem = {
}, },
setup(props) { setup(props) {
const showReplies = ref(props.defaultShowReplies) const showReplies = ref(props.defaultShowReplies)
watch(
() => props.defaultShowReplies,
(val) => {
showReplies.value = val
}
)
const showEditor = ref(false) const showEditor = ref(false)
const isWaitingForReply = ref(false) const isWaitingForReply = ref(false)
const toggleReplies = () => { const toggleReplies = () => {