From 5256a9eb0799344f855c1defc303a0ad599d8712 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Fri, 17 Jul 2026 13:00:46 +0200 Subject: [PATCH] gfd --- public/s/js/settings.js | 2 +- views/user-partial.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/s/js/settings.js b/public/s/js/settings.js index 7be5f2d..c91f5f3 100644 --- a/public/s/js/settings.js +++ b/public/s/js/settings.js @@ -622,7 +622,7 @@ } const croppedFile = new File([blob], file.name.replace(/\.[^/.]+$/, "") + ".webp", { type: 'image/webp' }); cleanup(); - resolve({ file: croppedFile, file_orig: file, banner_position: 'center', banner_size: 'cover' }); + resolve({ file: croppedFile, file_orig: file, banner_position: 'center top', banner_size: 'cover' }); }, 'image/webp', 0.9); }); diff --git a/views/user-partial.html b/views/user-partial.html index 2d1004e..d5d8202 100644 --- a/views/user-partial.html +++ b/views/user-partial.html @@ -40,6 +40,9 @@ @endif + @if(session && session.id === user.user_id) + + @endif
@@ -76,8 +79,6 @@ @endif @endif - @else - @endif
@endif