Pandora-Box icon indicating copy to clipboard operation
Pandora-Box copied to clipboard

feat: custom upload picture

Open legiz-ru opened this issue 3 months ago • 3 comments

alert: created by chatgpt codex tested on my local machine (win 11)

legiz-ru avatar Sep 29 '25 07:09 legiz-ru

There are a few issues:

  1. The page layout doesn't match the overall style.
  2. The upload image button on the right seems unnecessary—clicking the text to trigger the image selection dialog would suffice.
  3. The storage capacity of localStorage is limited, so large images may not be storable.

snakem982 avatar Sep 29 '25 12:09 snakem982

@snakem982 updated PR

legiz-ru avatar Oct 21 '25 05:10 legiz-ru

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.

snakem982 avatar Oct 21 '25 10:10 snakem982