usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.12k stars 2.26k forks source link

auto collapse or scale image which has large height #3825

Closed adoyle-h closed 2 days ago

adoyle-h commented 3 weeks ago

Describe the solution you'd like

When post an image whose size is 600 × 5000px, it will takes up a lot of space of the notes flow.

I wish the large image to be scaled down to a fixed size. And click image to view the raw size.

Type of feature

User Experience (UX)

Additional context

No response

RoccoSmit commented 3 weeks ago

You can try adding your own CSS to limit timeline image sizes

Go to settings -> system -> additional style and add

.flex.flex-col.justify-start.items-start.w-full.max-w-full img {
  max-height: 200px;
}

You can change the 200px to the size you prefer the tallest image in your timeline to be

adoyle-h commented 3 weeks ago

@RoccoSmit I tried. But it will show small height when clicked. I wish to click image to view the raw size.

And the .flex.flex-col.justify-start.items-start.w-full.max-w-full img is so complicated. Can you add css class names to each div? such as class="note".

RoccoSmit commented 3 weeks ago

the CSS selector only looks for images in the red box

image

When you click the image it opens in a dialog that does not live in the red box so the image is the raw size again

Regarding using class names on elements, this is a separate discussion that should get its own issue created and the people in the know can add their input