From 8a96c65ee7e5d23f3dae4add7b19c9f6a7e57616 Mon Sep 17 00:00:00 2001 From: wuming230 <1819845645@qq.com> Date: Thu, 6 Mar 2025 15:48:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E6=A1=A3=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/src/components/DocMenu.vue | 4 +++ docs/.vitepress/src/components/DocSearch.vue | 19 ++++++++++++- .../src/components/FloatingButton.vue | 2 +- .../src/components/FloatingButtonDocs.vue | 17 +++++++++-- docs/.vitepress/src/layouts/LayoutDoc.vue | 19 ++++++++----- docs/.vitepress/src/views/home/TheHome.vue | 6 ++++ .../src/views/search/TheSearchResult.vue | 28 +++++++++++++++++++ 7 files changed, 83 insertions(+), 12 deletions(-) diff --git a/docs/.vitepress/src/components/DocMenu.vue b/docs/.vitepress/src/components/DocMenu.vue index 98ffbfd..732ea17 100644 --- a/docs/.vitepress/src/components/DocMenu.vue +++ b/docs/.vitepress/src/components/DocMenu.vue @@ -129,6 +129,10 @@ const expanded = useVModel(props, 'expanded', emits); @include hover { --menu-item-bg-color-hover: transparent; } + + @include respond-to('<=laptop') { + margin-bottom: 12px; + } } .menu-content { diff --git a/docs/.vitepress/src/components/DocSearch.vue b/docs/.vitepress/src/components/DocSearch.vue index 8c2435c..c54a05a 100644 --- a/docs/.vitepress/src/components/DocSearch.vue +++ b/docs/.vitepress/src/components/DocSearch.vue @@ -64,9 +64,26 @@ const clearSearchDoc = () => { .o-input { transition: width var(--o-easing-standard-in) var(--o-duration-m2); } - margin-bottom: 22px; + margin-bottom: 24px; height: 40px; width: var(--layout-doc-menu-width); + + @include respond-to('<=laptop') { + margin-bottom: 12px; + + .o-icon svg { + width: 16px; + } + } + + @include respond-to('phone') { + height: 38px; + margin-bottom: 8px; + + .o-input { + @include text2; + } + } } .search-panel { width: 100%; diff --git a/docs/.vitepress/src/components/FloatingButton.vue b/docs/.vitepress/src/components/FloatingButton.vue index d6f5ccb..e17f84e 100644 --- a/docs/.vitepress/src/components/FloatingButton.vue +++ b/docs/.vitepress/src/components/FloatingButton.vue @@ -61,7 +61,7 @@ onUnmounted(() => { .feedback-home { position: fixed; bottom: 257px; - right: 80px; + right: 64px; z-index: 10; height: 200px; diff --git a/docs/.vitepress/src/components/FloatingButtonDocs.vue b/docs/.vitepress/src/components/FloatingButtonDocs.vue index 7d6f401..22f0302 100644 --- a/docs/.vitepress/src/components/FloatingButtonDocs.vue +++ b/docs/.vitepress/src/components/FloatingButtonDocs.vue @@ -360,12 +360,21 @@ onUnmounted(() => { .feedback { position: fixed; bottom: 160px; - right: 80px; + right: 64px; z-index: 10; height: 200px; + width: 48px; @include respond-to('<=laptop') { - right: 24px; + right: 40px; + } + + @include respond-to('<=pad') { + right: 32px; + } + + @include respond-to('phone') { + right: 12px; } } .dark-nav { @@ -381,7 +390,7 @@ onUnmounted(() => { .nav-box2 { display: flex; flex-direction: column; - padding: 16px 12px; + padding: 12px; background-color: var(--o-color-fill2); border-radius: var(--o-radius-xs); box-shadow: var(--o-shadow-2); @@ -393,6 +402,7 @@ onUnmounted(() => { color: var(--o-color-info1); cursor: pointer; .text-name { + transform: scale(0.8); @include tip2; } @@ -407,6 +417,7 @@ onUnmounted(() => { } .o-link { margin-top: 12px; + padding: 0; } .nav-box2 { diff --git a/docs/.vitepress/src/layouts/LayoutDoc.vue b/docs/.vitepress/src/layouts/LayoutDoc.vue index 835f1f7..20327d0 100644 --- a/docs/.vitepress/src/layouts/LayoutDoc.vue +++ b/docs/.vitepress/src/layouts/LayoutDoc.vue @@ -424,6 +424,7 @@ onUnmounted(() => {