-
{{ getLang(lang) }}
-
+
+
+
+ {{ getLang(lang, true) }}
+
-
+
{{ getLang(item.id) }}
@@ -103,11 +107,6 @@ const getLang = (lang: string) => {
diff --git a/app/.vitepress/src/components/header/HeaderSearch.vue b/app/.vitepress/src/components/header/HeaderSearch.vue
index 646ec3e19..f9b4264ff 100644
--- a/app/.vitepress/src/components/header/HeaderSearch.vue
+++ b/app/.vitepress/src/components/header/HeaderSearch.vue
@@ -401,9 +401,7 @@ const closeSearch = () => {
color: var(--o-color-info1);
padding-top: var(--o-gap-1);
cursor: pointer;
- svg {
- width: var(--o-icon_size-s);
- }
+ font-size: var(--o-icon_size-s);
}
}
}
diff --git a/app/.vitepress/src/components/header/HeaderTheme.vue b/app/.vitepress/src/components/header/HeaderTheme.vue
index 907619b7d..c2510125f 100644
--- a/app/.vitepress/src/components/header/HeaderTheme.vue
+++ b/app/.vitepress/src/components/header/HeaderTheme.vue
@@ -84,10 +84,14 @@ watch(
.theme-box-pc {
display: flex;
align-items: center;
+ height: 100%;
cursor: pointer;
color: var(--o-color-info1);
.icon {
- font-size: 20px;
+ font-size: var(--o-icon_size-m);
+ @include hover {
+ color: var(--o-color-primary1);
+ }
}
@include respond-to('<=pad_v') {
display: none;
--
Gitee
From fb17cb6e5c5ec4bf7a238216f97a976a1647bf9e Mon Sep 17 00:00:00 2001
From: luckyasme <807254037@qq.com>
Date: Fri, 18 Jul 2025 17:43:24 +0800
Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96title=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/markdown/MarkdownTitle.vue | 57 ++++++++++++-------
1 file changed, 35 insertions(+), 22 deletions(-)
diff --git a/app/.vitepress/src/components/markdown/MarkdownTitle.vue b/app/.vitepress/src/components/markdown/MarkdownTitle.vue
index 1e260d1fd..d1af3dc76 100644
--- a/app/.vitepress/src/components/markdown/MarkdownTitle.vue
+++ b/app/.vitepress/src/components/markdown/MarkdownTitle.vue
@@ -69,21 +69,23 @@ const onClickCopyLink = (e: MouseEvent) => {
-
+
-
-
-
-
-
-
-
- Copy link
-
+
+
+
+
+
+
+
+
+ Copy link
+
+
@@ -91,39 +93,50 @@ const onClickCopyLink = (e: MouseEvent) => {
.title-wrap {
position: relative;
display: inline-flex;
- align-items: center;
cursor: pointer;
+ .title {
+ flex: 1;
+ display: inline;
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+ word-break: normal;
+ }
+
span {
display: inline-flex;
}
- .pin, .link {
+ .pin,
+ .copy-link {
@include h2;
}
- .link {
- display: inline-flex;
- align-items: center;
+ .copy-link-wrap {
+ position: relative;
+ width: 1em;
+ height: 1em;
+ margin-left: 6px;
+ clear: both;
- @include hover {
- color: var(--o-color-primary1);
+ @include respond-to('<=laptop') {
+ margin-left: 4px;
}
}
.copy-link {
- margin-left: 6px;
+ position: absolute;
+ top: 2px;
- @include respond-to('<=laptop') {
- margin-left: 4px;
+ @include hover {
+ color: var(--o-color-primary1);
}
}
.pin {
position: absolute;
left: -28px;
- top: 50%;
- transform: translateY(-50%);
+ top: 4px;
padding-right: 4px;
transition: opacity var(--o-duration-l) var(--o-easing-standard-in);
opacity: 0;
--
Gitee