Commit Graph

1267 Commits

Author SHA1 Message Date
Eva
14a4386561 client/posts: skip thumbnail placeholder if fullsize image is in cache 2025-04-01 02:39:24 +02:00
Eva
289f8a87be client/css: outline around post relations 2025-03-28 17:17:15 +01:00
Eva
bfe3767b68 server/users: disable transparency and seeking on user avatars 2025-03-28 15:22:38 +01:00
Eva
952e683b72 server/images: restore ffmepg swf handling 2025-03-28 15:22:38 +01:00
Eva
1c08492a94 server/posts: update tests for thumbnail rework 2025-03-28 15:22:36 +01:00
Eva
1fd36b1f32 server/posts: prepend thumbnail filenames with 'sample_' 2025-03-28 14:17:29 +01:00
Eva
418640d967 server/szuru-admin: update thumbnail regeneration script 2025-03-28 13:55:30 +01:00
Eva
9362444871 client/css: make broken thumbnails in search take up the same area
To preserve the "right-click to save" behavior
2025-03-28 13:36:40 +01:00
5d262b0059 server: Add required dependencies to Dockerfile 2025-03-28 13:26:43 +01:00
0972139831 server/posts: fix custom thumbnails 2025-03-28 13:16:55 +01:00
535d2d2a8b server/posts: fix source file deletion 2025-03-28 13:16:55 +01:00
Eva
795ba068e6 client/posts: make discard thumbnail link delete existing custom thumb
I can see the intent, sadly this was always broken in the case where the
post already has a custom thumbnail from initial load, and we don't drag
any new files. It did not actually remove the existing thumbnail.
Before 12c4542bb2482fac89aae9a04b15984a56bb8fb0 it would actually crash,
but this now makes it behave as expected.
Also properly syncs internal state with what's displayed to the user.
2025-03-28 13:16:55 +01:00
Eva
061c604f14 server/rest: allow files with empty content 2025-03-28 13:16:55 +01:00
Eva
2b39414715 client/css: fix overextended broken thumbnail 2025-03-28 13:16:55 +01:00
Eva
289e004f9c client/posts: prioritize main image load 2025-03-28 13:16:55 +01:00
Eva
10bff18b0c client/posts: use original thumbnail for video poster 2025-03-28 13:16:55 +01:00
Eva
7724b282b4 client, server: rework custom thumbnails
Saving custom thumbnails separately allows us to display them in search
results etc while also displaying a thumbnail of the final content
during loading.
2025-03-28 13:16:55 +01:00
Eva
2d855a1773 client/posts: more robust fallbacks on error
Fallback cascade: original content, thumbnail, transparency grid
Implementation is very ugly but handles all cases nicely.
2025-03-28 13:16:55 +01:00
Eva
ac64af6179 client/upload: restore video previews 2025-03-28 13:16:55 +01:00
Eva
547ac4c398 client/upload: fix empty thumbnail size 2025-03-28 13:16:55 +01:00
Eva
743c512857 client/posts: display first video frame when available 2025-03-28 13:16:55 +01:00
Eva
10c15752d3 client/posts: thumbnail as video poster 2025-03-28 13:16:55 +01:00
Eva
8e4981dfb2 client/posts: display thumbnail while original image is loading 2025-03-28 13:16:55 +01:00
Eva
b971c966c8 client/css: prevent thumbnail dragging, fix ff upload thumbnail outline 2025-03-28 13:16:54 +01:00
Eva
abccf92979 client/upload: remove duplicate id 2025-03-28 13:01:55 +01:00
Eva
c294c80027 client/upload: preview video time that will be used for final thumbnail 2025-03-28 13:01:55 +01:00
Eva
c599465015 server/images: use white background for non-transparent images 2025-03-28 13:01:55 +01:00
Eva
7b5d367430 server/images: resize images in rgb, explicitly use bicubic
Indexed color PNGs would use their palette during scaling, leading to
very ugly dithering.
Convert to RGB32/RGB24, depending on if we intend to keep transparency.
For RGB24 this sets background color from the palette if there was one,
black otherwise although that may be undesirable.
Will have to find a way to fall back to a nicer color, or always use
the same color that we configure ourselves.
2025-03-28 13:01:55 +01:00
Eva
a343447704 server/images: use mozjpeg/libjpeg-turbo for jpeg conversion 2025-03-28 13:01:55 +01:00
376f687c38 chore: questionable is not a recognized rating 2025-02-11 21:50:27 +01:00
4fd848abf2 doc: use docker compose instead of docker-compose
The minimum version requirements are rough guesses, in practice any decently modern docker installation should work.
2025-02-11 21:25:10 +01:00
61b9f81e39 Fixed the google search option in the post details view 2024-11-17 16:48:24 +01:00
b721865931 server/config: generalize container support
Allow running in Kubernetes, podman, and LXC, besides plain docker-compose,
without having to fake out /.dockerenv in non-Docker environments.
2024-11-10 15:44:39 +01:00
Neo
46e3295003 Upload from clipboard (#414)
client/upload: upload from clipboard

Co-authored-by: Eva <evauwu@riseup.net>
2024-09-29 14:54:53 +02:00
031131506e client/css: fix comment word-break
`break-all` makes it hard to read actual comments.
2024-09-29 13:48:06 +02:00
Neo
d102578b54 Merge pull request #647 from po5/null-checks
client: add null checks
2024-04-27 21:23:16 +02:00
Neo
6edb25d87b Merge pull request #641 from po5/mobile
Mobile improvements
2024-04-26 22:56:58 +02:00
Neo
93fc15f2a4 Merge pull request #642 from po5/better-links 2024-04-26 22:37:54 +02:00
Neo
4f9d46e1c2 Merge branch 'master' into better-links 2024-04-26 22:16:37 +02:00
Eva
b72e81850d client: add null checks 2024-03-28 13:31:48 +01:00
Eva
c1c695f082 client/css: stack bulk tagging toggles horizontally on mobile 2024-03-21 22:26:49 +01:00
Eva
4b6b231fc8 client/posts: reorder elements in mobile layout
Navigation is always right below the image, and comments are always
at the very bottom, to minimize scrolling for common actions.
2024-03-21 22:26:28 +01:00
Eva
6b0c3cfc7f client/html: allow mobile browsers to zoom in 2024-03-21 22:23:45 +01:00
Eva
4ec8cb3ba2 client/css: constrain thumbnails to parent to prevent overextended links 2024-03-21 22:19:46 +01:00
Eva
8d971234a2 client/views: better pool name fallback 2024-03-21 22:16:05 +01:00
Eva
a16bb198ab client/views: more thorough link fallbacks
Prevents a bunch of errors that can happen when a resource is deleted.
2024-03-21 21:53:11 +01:00
Eva
3f182a66ad client/posts: fix overextended tag link 2024-03-21 21:52:52 +01:00
Eva
b52363e82d client/posts: fix overextended download link 2024-03-21 21:52:49 +01:00
Eva
3bf45e4c0a client/users: fix overextended avatar links 2024-03-21 21:52:39 +01:00
5596f53744 posts page ugly horizontal bar fix
fixes ugly horizontal scrollbar appearing when a post with extremely wide image is present in the posts list
2024-02-29 20:56:27 +01:00