Skip to content

Commit

Permalink
fix: load icon error
Browse files Browse the repository at this point in the history
  • Loading branch information
KUN1007 committed Oct 29, 2024
1 parent 78e4308 commit 3680c6b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
5 changes: 0 additions & 5 deletions components/kun/top-bar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ onUnmounted(() => window.removeEventListener('keydown', onKeydown))
display: flex;
justify-content: center;
align-items: center;
margin-right: 50px;
.search {
display: flex;
Expand Down Expand Up @@ -193,10 +192,6 @@ onUnmounted(() => window.removeEventListener('keydown', onKeydown))
}
@media (max-width: 700px) {
.kungalgamer-info {
margin-right: 30px;
}
.avatar {
.avatar-image {
margin-left: 0;
Expand Down
20 changes: 4 additions & 16 deletions components/kun/top-bar/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,17 @@ const handleRouterBack = () => {
.return,
.hamburger {
display: none;
margin-left: 20px;
cursor: pointer;
.icon {
font-size: 20px;
}
}
.return {
margin-right: 16px;
}
.nav-top {
display: flex;
align-items: center;
Expand All @@ -92,7 +95,6 @@ const handleRouterBack = () => {
.kungalgame {
display: flex;
align-items: center;
margin-left: 50px;
a {
display: flex;
Expand Down Expand Up @@ -128,18 +130,4 @@ const handleRouterBack = () => {
display: block;
}
}
.message-enter-active {
transition: all 0.3s;
}
.message-leave-active {
transition: all 0.3s;
}
.message-enter-from,
.message-leave-to {
transform: translateX(100%);
opacity: 0;
}
</style>
2 changes: 2 additions & 0 deletions components/kun/top-bar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const { showKUNGalgamePanel } = storeToRefs(useTempSettingStore())
margin-bottom: 17px;
flex-shrink: 0;
color: var(--kungalgame-font-color-3);
padding: 0 50px;
&::before {
content: '';
Expand All @@ -60,6 +61,7 @@ const { showKUNGalgamePanel } = storeToRefs(useTempSettingStore())
@media (max-width: 700px) {
.header {
margin-bottom: 5px;
padding: 0 16px;
}
}
</style>
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ export default defineNuxtConfig({
}
},

icon: {
fetchTimeout: 7777,
provider: 'iconify',
serverBundle: false
},

piniaPersistedstate: {
cookieOptions: {
maxAge: 60 * 60 * 24 * 7,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kun-galgame-nuxt3",
"version": "2.19.18",
"version": "2.19.19",
"packageManager": "[email protected]",
"private": true,
"scripts": {
Expand Down

0 comments on commit 3680c6b

Please sign in to comment.