diff --git a/src/views/SwipeView.vue b/src/views/SwipeView.vue index 65fe4ce..4621dd1 100644 --- a/src/views/SwipeView.vue +++ b/src/views/SwipeView.vue @@ -21,20 +21,21 @@
- -
+ + - + +
+ +
+
@@ -230,6 +238,7 @@ const onImageError = (event, userOnError, photoWithError) => { // MODIFIED: sign user: userOnError.name, photo_id: photoWithError._id, photo_url: photoWithError.url, + isProfilePhoto: photoWithError.isProfilePhoto, event_target_attributes: { naturalWidth: event.target.naturalWidth, naturalHeight: event.target.naturalHeight, @@ -240,7 +249,7 @@ const onImageError = (event, userOnError, photoWithError) => { // MODIFIED: sign ); // For debugging, let's NOT hide the image for now. // This will show the browser's default broken image icon. - // event.target.style.display = 'none'; // MODIFIED: Commented out for debugging + // event.target.style.display = 'none'; // The logic to update userInSuggestions.mainPhotoUrl is outdated. // const userInSuggestions = suggestions.value.find(u => u._id === userOnError._id); @@ -331,6 +340,21 @@ const onImageError = (event, userOnError, photoWithError) => { // MODIFIED: sign height: 400px; /* Задает фиксированную высоту для всех фотографий в карусели */ } +.single-photo-display { /* Контейнер для одиночного фото */ + width: 100%; + height: 400px; /* Та же высота, что и у карусели/заглушки */ + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; /* На случай если изображение попытается выйти за рамки */ +} + +.single-main-photo-img { /* Стиль для одиночного изображения, если оно не в карусели */ + height: 400px; /* Явно задаем высоту */ + /* object-fit: cover; уже есть в .user-photo */ + /* width: 100%; уже есть в .user-photo */ +} + .no-photo-placeholder { /* Стиль для заглушки, когда фотографий нет */ height: 400px; /* Такая же высота, как и у фотографий в карусели */ width: 100%; /* Заглушка должна занимать всю ширину карточки */