Skip to content

Commit

Permalink
gh pages fix attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecil Bowen committed Oct 16, 2023
1 parent cb2b34b commit abb89ad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "disgaea-7-evility-search",
"version": "0.1.0",
"homepage": "https://cecilbowen.github.io/disagea-7-evility-search",
"homepage": ".",
"private": true,
"main": "src/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/higan-face-favicon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const App = () => {
setActiveCats(tempActiveCats);
console.log("cats", tempActiveCats);
}} />
<img src={`./disagea-7-evility-search/images/evility_categories/${k}.png`}
<img src={`images/evility_categories/${k}.png`}
style={{ objectFit: 'contain', position: 'absolute',
opacity: isChecked ? 1 : 0.5,
left: '5.5px', top: '5.5px', pointerEvents: 'none' }} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/CategoryEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const CategoryEditor = ({ evilities }) => {
return <StyledTableCell align="center" key={k}
title={v}
style={{ width: 'fit-content', lineHeight: 0, backgroundColor: hoverColumn === k ? 'lightblue' : 'black' }}>
<img src={`./disagea-7-evility-search/images/evility_categories/${k}.png`} />
<img src={`images/evility_categories/${k}.png`} />
</StyledTableCell>;
};

Expand All @@ -189,7 +189,7 @@ const CategoryEditor = ({ evilities }) => {
size="small"
sx={{ opacity: !showImages || k === EVILITY_CATEGORIES.None && checked ? 1 : 0 }}
/>
{showImages && <img src={`./disagea-7-evility-search/images/evility_categories/${k}.png`}
{showImages && <img src={`images/evility_categories/${k}.png`}
style={{ opacity: checked ? 1 : 0.5, position: 'absolute', pointerEvents: 'none',
left: 'calc(50% - 15.5px)', top: 'calc(50% - 15.5px)' }} />}
</StyledTableCell>;
Expand Down
3 changes: 2 additions & 1 deletion src/components/EvilityTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ const EvilityTable = ({ evilities, textFilter, filters, searchCriteria }) => {
{evility.name}
</StyledTableCell>
<StyledTableCell align="center" sx={{ lineHeight: 0 }}><img title={evility.category}
src={`./disagea-7-evility-search/images/evility_categories/${evility.category || "None"}.png`} /></StyledTableCell>
src={`images/evility_categories/${evility.category || "None"}.png`} />
</StyledTableCell>
<StyledTableCell align="left">{evility.description}</StyledTableCell>
<StyledTableCell align="center">{evility.cost ? evility.cost : '-'}</StyledTableCell>
<StyledTableCell align="left" sx={ typeStyle }>{evility.unique ? "Unique" : "Generic"}</StyledTableCell>
Expand Down
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
Expand Down

0 comments on commit abb89ad

Please sign in to comment.