Skip to content

Commit

Permalink
fix: image too wide
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock committed Jul 21, 2024
1 parent 78c6080 commit 36b12d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Binary file modified resources/dist.rc
Binary file not shown.
2 changes: 2 additions & 0 deletions src/celemod-ui/src/components/ModList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@
border-radius: 10px;
cursor: pointer;
min-width: 300px;
width: 300px;
object-fit: cover;
margin-right: 10px;
max-height: 160px;
border: 1px solid theme.$bg3;
Expand Down
11 changes: 8 additions & 3 deletions src/celemod-ui/src/context/everest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const useEverestInstallState =
setEverestInstallState: (everestInstallState: EverestInstallState) => set({ everestInstallState })
}));

let lastGamePath
export const useEverestCtx = () => {
const { currentEverestVersion, setCurrentEverestVersion } = useCurrentEverestVersion();
const [gamePath] = useGamePath();
Expand All @@ -42,10 +43,14 @@ export const useEverestCtx = () => {
}
}

useEffect(() => {
if (gamePath)
if (lastGamePath !== gamePath) {
lastGamePath = gamePath;

if (gamePath) {
ctx.updateEverestVersion();
}, [gamePath])
}
}

return ctx;

}
1 change: 1 addition & 0 deletions src/celemod-ui/src/context/modManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const createModManageContext = () => {
if (gamePath) {

callRemote("get_everest_version", gamePath, (ver: string) => {
console.log("[modManage] Everest version", ver)
if (ver && ver.length > 2) {
setTimeout(() => {
const popup = createPopup(
Expand Down

0 comments on commit 36b12d0

Please sign in to comment.