Skip to content

Commit

Permalink
Merge pull request #156 from traPtitech/fix/header_logo
Browse files Browse the repository at this point in the history
本番ビルドでヘッダーのロゴが表示できてない
  • Loading branch information
mehm8128 committed Jun 21, 2024
2 parents 73da450 + af64965 commit dfb300e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Layout/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import SearchInput from '/@/components/UI/SearchInput.vue'
import { useResponsiveStore } from '/@/store/responsive'
import { storeToRefs } from 'pinia'
import pcLogo from '/@/assets/traP_logo_blue.svg'
import spLogo from '/@/assets/traP_logo_icon.svg'
const responsiveStore = useResponsiveStore()
const { isMobile } = storeToRefs(responsiveStore)
Expand All @@ -11,11 +13,7 @@ const { isMobile } = storeToRefs(responsiveStore)
<header :class="$style.container">
<router-link to="/">
<img
:src="
isMobile
? '/@/assets/traP_logo_icon.svg'
: '/@/assets/traP_logo_blue.svg'
"
:src="isMobile ? spLogo : pcLogo"
alt="traP"
:width="isMobile ? '48' : '343'"
height="48"
Expand Down
4 changes: 4 additions & 0 deletions src/types/shims-svg.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.svg' {
const content: string
export default content
}

0 comments on commit dfb300e

Please sign in to comment.