Pandora-Box
Pandora-Box copied to clipboard
feat: custom upload picture
alert: created by chatgpt codex tested on my local machine (win 11)
There are a few issues:
- The page layout doesn't match the overall style.
- The upload image button on the right seems unnecessary—clicking the text to trigger the image selection dialog would suffice.
- The storage capacity of
localStorageis limited, so large images may not be storable.
@snakem982 updated PR
The 1MB image size limit is quite restrictive. A more flexible approach would be to copy the image to the application's temporary directory—such as Pandora-Box-V3/images—and then use src-electron/server.ts to create an API that serves the image. This method is much more reasonable.