From 35f8ca597a7200949aad832e5159ad77b2fbdfcc Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 26 Sep 2023 09:37:38 +0000 Subject: [PATCH] :bug: Fix extra menu color toggle spacing --- packages/theme-nonepress/src/theme/Menu/styles.css | 2 +- .../src/theme/Navbar/ColorModeToggle/styles.css | 2 +- packages/theme-nonepress/src/theme/TOC/styles.css | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/theme-nonepress/src/theme/Menu/styles.css b/packages/theme-nonepress/src/theme/Menu/styles.css index 86b3f89..af3a99c 100644 --- a/packages/theme-nonepress/src/theme/Menu/styles.css +++ b/packages/theme-nonepress/src/theme/Menu/styles.css @@ -7,7 +7,7 @@ } &-link { - @apply flex items-center gap-2 whitespace-pre-wrap [word-break:break-word]; + @apply flex items-center gap-2 whitespace-pre-wrap; &-active, &-active:hover, diff --git a/packages/theme-nonepress/src/theme/Navbar/ColorModeToggle/styles.css b/packages/theme-nonepress/src/theme/Navbar/ColorModeToggle/styles.css index 01d7641..07e613e 100644 --- a/packages/theme-nonepress/src/theme/Navbar/ColorModeToggle/styles.css +++ b/packages/theme-nonepress/src/theme/Navbar/ColorModeToggle/styles.css @@ -1,6 +1,6 @@ .navbar-appearance { &-mobile { - @apply flex justify-between items-center; + @apply flex justify-between items-center gap-2; @apply px-6 py-4; } } diff --git a/packages/theme-nonepress/src/theme/TOC/styles.css b/packages/theme-nonepress/src/theme/TOC/styles.css index f1ebc1c..1fbe838 100644 --- a/packages/theme-nonepress/src/theme/TOC/styles.css +++ b/packages/theme-nonepress/src/theme/TOC/styles.css @@ -18,4 +18,8 @@ &-tree::before { @apply top-2 bottom-2; } + + &-link { + @apply [word-break:break-word]; + } }