Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .vitepress/theme/components/CustomHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ watch(

.logo-icon {
height: 32px;
/* 避免全局 img { max-width: 100% } 导致 logo 在窄屏时被压缩 */
max-width: none;
/* 保证在某些布局下不会被最小宽度约束影响 */
min-width: 0;
}

.logo-text {
Expand Down Expand Up @@ -749,6 +753,12 @@ watch(
}

@media (max-width: 979px) {
/* 移动端适配:窄屏时使用较小的 logo,避免溢出 */
.mb-logo .logo-icon {
width: 160px;
height: 26px;
max-width: none;
}
.header-top {
display: none;
}
Expand Down
Loading