From 916793f5aefa76c7e61d483268311affd5987dc9 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 5 Jan 2023 23:50:14 +0100 Subject: [PATCH] fix: ui search items --- components/common/CommonTrendingCharts.vue | 6 ++++- components/search/SearchAccountInfo.vue | 24 +++++++++++++++++++ ...{HashtagInfo.vue => SearchHashtagInfo.vue} | 8 +++---- components/search/SearchResult.vue | 12 ++++++++-- components/search/SearchWidget.vue | 2 +- components/tiptap/TiptapHashtagList.vue | 3 +-- 6 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 components/search/SearchAccountInfo.vue rename components/search/{HashtagInfo.vue => SearchHashtagInfo.vue} (64%) diff --git a/components/common/CommonTrendingCharts.vue b/components/common/CommonTrendingCharts.vue index 43fbf05b..b579dfee 100644 --- a/components/common/CommonTrendingCharts.vue +++ b/components/common/CommonTrendingCharts.vue @@ -4,8 +4,12 @@ import sparkline from '@fnando/sparkline' const { history, + width = 60, + height = 40, } = $defineProps<{ history?: History[] + width?: number + height?: number }>() const historyNum = $computed(() => { @@ -24,5 +28,5 @@ watch([$$(historyNum), $$(sparklineEl)], ([historyNum, sparklineEl]) => { diff --git a/components/search/SearchAccountInfo.vue b/components/search/SearchAccountInfo.vue new file mode 100644 index 00000000..dd55f5c6 --- /dev/null +++ b/components/search/SearchAccountInfo.vue @@ -0,0 +1,24 @@ + + + diff --git a/components/search/HashtagInfo.vue b/components/search/SearchHashtagInfo.vue similarity index 64% rename from components/search/HashtagInfo.vue rename to components/search/SearchHashtagInfo.vue index f98cf3fd..f7b9d06f 100644 --- a/components/search/HashtagInfo.vue +++ b/components/search/SearchHashtagInfo.vue @@ -9,8 +9,8 @@ const totalTrend = $computed(() => diff --git a/components/search/SearchResult.vue b/components/search/SearchResult.vue index e4b17eff..a42baa56 100644 --- a/components/search/SearchResult.vue +++ b/components/search/SearchResult.vue @@ -12,9 +12,17 @@ const onActivate = () => {