From a81c20a21cbcef0c66b6996b518ea3dac1fda824 Mon Sep 17 00:00:00 2001
From: pengzhanbo
Date: Sat, 27 Jul 2024 19:23:39 +0800
Subject: [PATCH] perf(theme): improve content layout
---
theme/src/client/components/VPDoc.vue | 4 ++--
theme/src/client/features/components/RepoCard.vue | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/theme/src/client/components/VPDoc.vue b/theme/src/client/components/VPDoc.vue
index 6346705e..4cc2abfd 100644
--- a/theme/src/client/components/VPDoc.vue
+++ b/theme/src/client/components/VPDoc.vue
@@ -174,7 +174,7 @@ watch(
@media (min-width: 1440px) {
.vp-doc-container:not(.has-sidebar) .content {
- max-width: 784px;
+ max-width: 884px;
}
.vp-doc-container.is-blog:not(.has-sidebar.has-aside) .content {
@@ -275,6 +275,6 @@ watch(
}
.vp-doc-container.has-aside .content-container {
- max-width: 688px;
+ max-width: 788px;
}
diff --git a/theme/src/client/features/components/RepoCard.vue b/theme/src/client/features/components/RepoCard.vue
index a1c36b77..efe94170 100644
--- a/theme/src/client/features/components/RepoCard.vue
+++ b/theme/src/client/features/components/RepoCard.vue
@@ -17,7 +17,7 @@ const { loaded, data } = useGithubRepo(toRef(props, 'repo'))
{{ data.ownerType === 'Organization' ? data.fullName : data.name }}
- {{ data.visibility + (data.template ? ' Template' : '') }}
+ {{ data.visibility + (data.template ? ' Template' : '') }}
{{ data.description }}