Skip to content

Commit 36b12d0

Browse files
fix: image too wide
1 parent 78c6080 commit 36b12d0

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

resources/dist.rc

58 Bytes
Binary file not shown.

src/celemod-ui/src/components/ModList.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@
212212
border-radius: 10px;
213213
cursor: pointer;
214214
min-width: 300px;
215+
width: 300px;
216+
object-fit: cover;
215217
margin-right: 10px;
216218
max-height: 160px;
217219
border: 1px solid theme.$bg3;

src/celemod-ui/src/context/everest.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const useEverestInstallState =
2020
setEverestInstallState: (everestInstallState: EverestInstallState) => set({ everestInstallState })
2121
}));
2222

23+
let lastGamePath
2324
export const useEverestCtx = () => {
2425
const { currentEverestVersion, setCurrentEverestVersion } = useCurrentEverestVersion();
2526
const [gamePath] = useGamePath();
@@ -42,10 +43,14 @@ export const useEverestCtx = () => {
4243
}
4344
}
4445

45-
useEffect(() => {
46-
if (gamePath)
46+
if (lastGamePath !== gamePath) {
47+
lastGamePath = gamePath;
48+
49+
if (gamePath) {
4750
ctx.updateEverestVersion();
48-
}, [gamePath])
51+
}
52+
}
4953

5054
return ctx;
55+
5156
}

src/celemod-ui/src/context/modManage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const createModManageContext = () => {
5959
if (gamePath) {
6060

6161
callRemote("get_everest_version", gamePath, (ver: string) => {
62+
console.log("[modManage] Everest version", ver)
6263
if (ver && ver.length > 2) {
6364
setTimeout(() => {
6465
const popup = createPopup(

0 commit comments

Comments
 (0)