Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails not displayed when there are more than 4 #616

Open
alok0 opened this issue Aug 26, 2023 · 0 comments
Open

Thumbnails not displayed when there are more than 4 #616

alok0 opened this issue Aug 26, 2023 · 0 comments
Labels
enhancement enhance an existing feature

Comments

@alok0
Copy link

alok0 commented Aug 26, 2023

If there are posts with more than 4 images (some instances have much higher limits on the number of attachments) no images are displayed at all.

As an initial workaround 4 images should be displayed if there than more than 4

diff --git a/src/app/components/stream/status/attachements/attachements.component.html b/src/app/components/stream/status/attachements/attachements.component.html
--- src/app/components/stream/status/attachements/attachements.component.html
+++ src/app/components/stream/status/attachements/attachements.component.html
@@ -25,9 +25,9 @@
             (openEvent)="attachmentSelected('image', 2)">
         </app-attachement-image>
     </div>
 
-    <div class="galery__image" *ngIf="imageAttachments.length === 4">
+    <div class="galery__image" *ngIf="imageAttachments.length >= 4">
         <app-attachement-image class="galery__img--4" [attachment]="imageAttachments[0]"
             (openEvent)="attachmentSelected('image', 0)">
         </app-attachement-image>
         <app-attachement-image class="galery__img--4" [attachment]="imageAttachments[1]"

But a real fix should probably also include an indication that there are more thumbnails not shown.

@NicolasConstant NicolasConstant added the enhancement enhance an existing feature label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants