From 80dd62ae0f201759164bce77c230c61bd5d7df39 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 30 Jul 2024 12:05:03 +0800 Subject: [PATCH] chore: adjust top bar height --- src/components/SearchBar/SearchBar.vue | 13 ++- src/components/TopBar/OldTopBar.vue | 12 +-- src/components/TopBar/TopBar.vue | 129 +++++++++++++------------ src/contentScripts/views/App.vue | 2 +- src/contentScripts/views/Home/Home.vue | 2 +- src/styles/variables.scss | 2 +- 6 files changed, 84 insertions(+), 76 deletions(-) diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index 03f38571..fdc82811 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -169,7 +169,7 @@ async function handleClearSearchHistory() { @@ -935,8 +938,8 @@ defineExpose({ --uno: "relative text-$bew-text-1 flex items-center"; &:not(.avatar) a { - --uno: "text-xl flex items-center p-2 rounded-40px duration-300 relative z-5"; - --uno: "h-35px h-35px"; + --uno: "text-xl grid place-items-center rounded-40px duration-300 relative z-5"; + --uno: "h-34px w-34px"; } &.active a, diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 87498f90..3ea704e8 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -314,7 +314,7 @@ provide('BEWLY_APP', {
diff --git a/src/contentScripts/views/Home/Home.vue b/src/contentScripts/views/Home/Home.vue index 4b028996..f5207fc4 100644 --- a/src/contentScripts/views/Home/Home.vue +++ b/src/contentScripts/views/Home/Home.vue @@ -190,7 +190,7 @@ function toggleTabContentLoading(loading: boolean) {
diff --git a/src/styles/variables.scss b/src/styles/variables.scss index fa0ad712..1a4fd781 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -7,7 +7,7 @@ --bew-radius: 12px; --bew-radius-half: calc(var(--bew-radius) / 2); - --bew-top-bar-height: 70px; + --bew-top-bar-height: 68px; // #region Filters // Use this in all components (except dialogs) if you want to add a frosted glass effect