Skip to content

Commit

Permalink
Prefix Image paths with '/' (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfisher72 authored Jan 2, 2025
1 parent 0f07288 commit a31b431
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion screen2.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
"typescript-eslint": "^8.18.0"
},
"packageManager": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion screen2.0/src/app/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function ResponsiveAppBar() {
<Box component={Link} href={'/'} height={45} width={87} position={"relative"}>
<Image
priority
src={"SCREEN_logo_dark_small.png"}
src={"/SCREEN_logo_dark_small.png"}
alt="SCREEN Icon"
fill
style={{ objectFit: "contain", objectPosition: 'left center' }}
Expand Down
4 changes: 2 additions & 2 deletions screen2.0/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Home() {
<Grid container spacing={3} sx={{ mr: "auto", ml: "auto", mt: 5, maxWidth: '95%' }}>
<Grid size={{ xs: 12, lg: 6 }}>
<Box position={"relative"} height={{ xs: 150, md: 150 }}>
<Image priority src={"SCREEN_logo_light_large.png"} alt={"SCREEN home image"} fill style={{objectFit: "contain", objectPosition: "left center"}} />
<Image priority src={"/SCREEN_logo_light_large.png"} alt={"SCREEN home image"} fill style={{objectFit: "contain", objectPosition: "left center"}} />
</Box>
<Typography variant="h5" mb={3} mt={2}>Search Candidate cis-Regulatory Elements by ENCODE</Typography>
<MainSearch />
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function Home() {
</Grid>
</Grid>
<Grid size={{ xs: 12, lg: 6 }} position={"relative"} minHeight={400}>
<Image priority src={"SCREEN-Landing.png"} alt={"SCREEN home image"} fill style={{objectFit: "contain", objectPosition: "left"}} />
<Image priority src={"/SCREEN-Landing.png"} alt={"SCREEN home image"} fill style={{objectFit: "contain", objectPosition: "left"}} />
</Grid>
</Grid>
</main>
Expand Down
10 changes: 5 additions & 5 deletions screen2.0/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3417,9 +3417,9 @@ __metadata:
languageName: node
linkType: hard

"@weng-lab/genomebrowser@npm:^0.0.13":
version: 0.0.13
resolution: "@weng-lab/genomebrowser@npm:0.0.13"
"@weng-lab/genomebrowser@npm:^0.0.14":
version: 0.0.14
resolution: "@weng-lab/genomebrowser@npm:0.0.14"
dependencies:
"@apollo/client": "npm:^3.11.10"
bigwig-reader: "npm:^1.3.1"
Expand All @@ -3431,7 +3431,7 @@ __metadata:
peerDependencies:
react: ^18.3.1
react-dom: ^18.3.1
checksum: 10/a70aad38d402745495653b7ac99e921bc6e055962caddb1655a24ed7f20b8e36ce768d2445c4098f5d947b1338909cec35317cf5177887b57b6fc5e03b75b57d
checksum: 10/fd1b174303a0ad1079f85077893591a5da8229b311a5ba7e3e8d2675ae55100802677608bc000dbc016805cff97a4871efd5bec746e16db1f4853d2241422ec9
languageName: node
linkType: hard

Expand Down Expand Up @@ -8318,7 +8318,7 @@ __metadata:
"@types/react-dom": "npm:^18.3.1"
"@vercel/analytics": "npm:^1.4.1"
"@visx/visx": "npm:^3.12.0"
"@weng-lab/genomebrowser": "npm:^0.0.13"
"@weng-lab/genomebrowser": "npm:^0.0.14"
"@weng-lab/psychscreen-ui-components": "npm:^2.0.8"
"@weng-lab/ts-ztable": "npm:^4.0.1"
autoprefixer: "npm:10.4.20"
Expand Down

0 comments on commit a31b431

Please sign in to comment.