Skip to content

Commit

Permalink
fix: 새로고침 시 문서 로고의 layout shift 수정 (#207)
Browse files Browse the repository at this point in the history
* fix: layout shift 해결을위해 priority 추가

* chore: changeset 추가
  • Loading branch information
anonymousRecords authored Aug 1, 2024
1 parent 9e6d391 commit 3c5c7f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-suits-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docs": patch
---

새로고침 시 문서 로고의 layout shift를 개선함
2 changes: 1 addition & 1 deletion docs/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config: DocsThemeConfig = {
logo: function useLogo() {
const isDarkMode = useIsDarkMode();

return <Image src={isDarkMode ? '/logo-white.png' : '/logo.png'} alt="logo" width={120} height={48} />;
return <Image src={isDarkMode ? '/logo-white.png' : '/logo.png'} alt="logo" width={120} height={48} priority />;
},
head: function useHead() {
const { title } = useConfig();
Expand Down

0 comments on commit 3c5c7f6

Please sign in to comment.