Fix: Camera Photo View

This commit is contained in:
duckietm 2024-04-18 13:56:25 +02:00
parent 2d7b82ab90
commit 5dd8fc366d
4 changed files with 8 additions and 8 deletions

View File

@ -170,8 +170,8 @@ $nitro-card-tabs-height: 42px;
.nitro-card-header-report-camera {
cursor: pointer;
padding: 0px 2px;
margin-right: 4px;
padding: 1px 2px;
margin-right: 10px;
line-height: 1;
@include font-size($h7-font-size);
border-radius: $border-radius;

View File

@ -61,11 +61,11 @@ export const CameraWidgetShowPhotoView: FC<CameraWidgetShowPhotoViewProps> = pro
</Flex>
{ (currentPhotos.length > 1) &&
<Flex className="picture-preview-buttons">
<FaArrowLeft className="cursor-pointer picture-preview-buttons-previous fa-icon" onClick={ previous } />
<FaArrowLeft className="cursor-pointer" onClick={ previous } />
<Text underline className="cursor-pointer" onClick={ event => GetUserProfile(currentImage.oi) }>{ currentImage.o }</Text>
<FaArrowRight className="cursor-pointer picture-preview-buttons-next fa-icon" onClick={ next } />
<FaArrowRight className="cursor-pointer" onClick={ next } />
</Flex>
}
</Grid>
);
}
}

View File

@ -1,5 +1,5 @@
import { FC } from 'react';
import { GetSessionDataManager, ReportType } from '../../../../api';
import { GetSessionDataManager, LocalizeText, ReportType } from '../../../../api';
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../common';
import { useFurnitureExternalImageWidget, useHelp } from '../../../../hooks';
import { CameraWidgetShowPhotoView } from '../../../camera/views/CameraWidgetShowPhotoView';
@ -13,7 +13,7 @@ export const FurnitureExternalImageView: FC<{}> = props =>
return (
<NitroCardView className="nitro-external-image-widget" theme="primary-slim">
<NitroCardHeaderView headerText="" isGalleryPhoto={ true } onReportPhoto={ () => report(ReportType.PHOTO, { extraData: currentPhotos[currentPhotoIndex].w, roomId: currentPhotos[currentPhotoIndex].s, reportedUserId: GetSessionDataManager().userId, roomObjectId: Number(currentPhotos[currentPhotoIndex].u) }) } onCloseClick={ onClose } />
<NitroCardHeaderView headerText={ LocalizeText('camera.interface.title') } isGalleryPhoto={ true } onReportPhoto={ () => report(ReportType.PHOTO, { extraData: currentPhotos[currentPhotoIndex].w, roomId: currentPhotos[currentPhotoIndex].s, reportedUserId: GetSessionDataManager().userId, roomObjectId: Number(currentPhotos[currentPhotoIndex].u) }) } onCloseClick={ onClose } />
<NitroCardContentView>
<CameraWidgetShowPhotoView currentIndex={ currentPhotoIndex } currentPhotos={ currentPhotos } />
</NitroCardContentView>

View File

@ -58,7 +58,7 @@
display: flex;
align-items: center;
justify-content: space-between;
color: black;
color: gray;
}
.picture-preview-buttons-previous,