From 91b646dffbad1358210b138711c6d15cb074d454 Mon Sep 17 00:00:00 2001 From: ddiu8081 Date: Mon, 10 Oct 2022 02:41:42 +0800 Subject: [PATCH] feat: fit stdout height --- src/App.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index 17da2bf..f5b9fcb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,6 +33,7 @@ const watchers = ref(0) const attention = ref(0) const selectedTab = ref(0) +const contentHeight = process.stdout.rows - 8 || 14 const allList = ref[]>([]) const danmuList = ref[]>([]) const superChatList = ref[]>([]) @@ -110,39 +111,39 @@ const handleTabChange = (index: number) => { - + - + - + - + - + - + - +